1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-27 10:17:47 +00:00

Use HTTPS for piwik when loading via HTTPS

This commit is contained in:
Mark McDowall 2015-05-14 13:24:24 -07:00
parent 96578ca59b
commit 761a106fa9

View file

@ -24,7 +24,7 @@ module.exports = Marionette.AppRouter.extend({
if (window.NzbDrone.Analytics && window.Piwik) {
try {
var piwik = window.Piwik.getTracker('http://piwik.nzbdrone.com/piwik.php', 1);
var piwik = window.Piwik.getTracker(window.location.protocol + '//piwik.nzbdrone.com/piwik.php', 1);
piwik.setReferrerUrl('');
piwik.setCustomUrl('http://local' + window.location.pathname);
piwik.setCustomVariable(1, 'version', window.NzbDrone.Version, 'page');