minor cleanup

pull/2/head
Keivan Beigi 10 years ago
parent a21b535937
commit f716903a30

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

@ -1,6 +1,4 @@
'use strict';
(function () {
if(window.NzbDrone.Analytics) {
var d = document;
var g = d.createElement('script');
@ -10,5 +8,4 @@ if(window.NzbDrone.Analytics) {
g.defer = true;
g.src = 'http://piwik.nzbdrone.com/piwik.js';
s.parentNode.insertBefore(g, s);
}
})();
}
Loading…
Cancel
Save