minor cleanup

This commit is contained in:
Keivan Beigi 2014-09-27 12:46:23 -07:00
parent a21b535937
commit f716903a30
2 changed files with 2 additions and 5 deletions

View File

@ -26,7 +26,7 @@ define(
document.title = title + ' - nzbdrone'; document.title = title + ' - nzbdrone';
} }
if(window.Piwik){ if(window.NzbDrone.Analytics && window.Piwik){
try { try {
var piwik = window.Piwik.getTracker('http://piwik.nzbdrone.com/piwik.php', 1); var piwik = window.Piwik.getTracker('http://piwik.nzbdrone.com/piwik.php', 1);
piwik.setReferrerUrl(''); piwik.setReferrerUrl('');

View File

@ -1,6 +1,4 @@
'use strict'; 'use strict';
(function () {
if(window.NzbDrone.Analytics) { if(window.NzbDrone.Analytics) {
var d = document; var d = document;
var g = d.createElement('script'); var g = d.createElement('script');
@ -11,4 +9,3 @@ if(window.NzbDrone.Analytics) {
g.src = 'http://piwik.nzbdrone.com/piwik.js'; g.src = 'http://piwik.nzbdrone.com/piwik.js';
s.parentNode.insertBefore(g, s); s.parentNode.insertBefore(g, s);
} }
})();