minor cleanup
This commit is contained in:
parent
a21b535937
commit
f716903a30
|
@ -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('');
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
})();
|
|
Loading…
Reference in New Issue