mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
minor cleanup
This commit is contained in:
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…
Reference in New Issue
Block a user