mirror of https://github.com/Radarr/Radarr
Use HTTPS for piwik when loading via HTTPS
This commit is contained in:
parent
96578ca59b
commit
761a106fa9
|
@ -24,7 +24,7 @@ module.exports = Marionette.AppRouter.extend({
|
||||||
|
|
||||||
if (window.NzbDrone.Analytics && 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(window.location.protocol + '//piwik.nzbdrone.com/piwik.php', 1);
|
||||||
piwik.setReferrerUrl('');
|
piwik.setReferrerUrl('');
|
||||||
piwik.setCustomUrl('http://local' + window.location.pathname);
|
piwik.setCustomUrl('http://local' + window.location.pathname);
|
||||||
piwik.setCustomVariable(1, 'version', window.NzbDrone.Version, 'page');
|
piwik.setCustomVariable(1, 'version', window.NzbDrone.Version, 'page');
|
||||||
|
|
Loading…
Reference in New Issue