Skip to content

Commit

Permalink
Make sure tracking works in IE9 and lower (matomo-org#15480)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteur authored and jonasgrilleres committed Sep 22, 2020
1 parent ae6d6ce commit 4f43ba9
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 17 deletions.
4 changes: 2 additions & 2 deletions js/piwik.js
Original file line number Diff line number Diff line change
Expand Up @@ -7730,7 +7730,7 @@ if (typeof window.Piwik !== 'object') {
// initialize the Piwik singleton
addEventListener(windowAlias, 'beforeunload', beforeUnloadHandler, false);

window.addEventListener('message', function(e) {
addEventListener(windowAlias,'message', function(e) {
if (!e || !e.origin) {
return;
}
Expand Down Expand Up @@ -7813,7 +7813,7 @@ if (typeof window.Piwik !== 'object') {
maq_optout_by_default: tracker.isConsentRequired()
});
}
});
}, false);

Date.prototype.getTimeAlias = Date.prototype.getTime;

Expand Down
8 changes: 4 additions & 4 deletions js/piwik.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4f43ba9

Please sign in to comment.