From 761a106fa992d1d486375320a0ac815f1578d2ad Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 14 May 2015 13:24:24 -0700 Subject: [PATCH] Use HTTPS for piwik when loading via HTTPS --- src/UI/Shared/NzbDroneController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UI/Shared/NzbDroneController.js b/src/UI/Shared/NzbDroneController.js index dd741d653..a97dea369 100644 --- a/src/UI/Shared/NzbDroneController.js +++ b/src/UI/Shared/NzbDroneController.js @@ -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');