Skip to content

Commit

Permalink
scripts: Remove IE8 support in Matomo script and minify (wikimedia#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
Volker-E authored Oct 16, 2020
1 parent 9557e25 commit 90d3fba
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion js/matomo-tracking.min.js

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

2 changes: 1 addition & 1 deletion js/matomo-tracking.min.js.map.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":3,"file":"matomo-tracking.min.js","sources":["src/matomo-tracking.js"],"names":["_paq","window","embedTrackingCode","u","d","document","g","createElement","s","getElementsByTagName","push","src","async","defer","appendChild","addEventListener","attachEvent"],"mappings":"AAMA,IAAIA,KAAOC,OAAOD,MAAQ,GAM1B,SAASE,oBACR,IAAIC,EAAI,+BACPC,EAAIC,SACJC,EAAIF,EAAEG,cAAe,UACrBC,EAAIJ,EAAEK,qBAAsB,QAAU,GACvCT,KAAKU,KAAM,CAAE,gBAAiBP,EAAI,cAClCH,KAAKU,KAAM,CAAE,YAAa,OAC1BJ,EAAEK,IAAMR,EAAI,WACZG,EAAEM,OAAQ,EACVN,EAAEO,OAAQ,EACVL,EAAEM,YAAaR,GAfhBN,KAAKU,KAAM,CAAE,aAAc,CAAE,6BAC7BV,KAAKU,KAAM,CAAE,kBACbV,KAAKU,KAAM,CAAE,uBAgBRT,OAAOc,iBACXd,OAAOc,iBAAkB,OAAQb,mBAAmB,GACzCD,OAAOe,YAClBf,OAAOe,YAAa,SAAUd,mBAE9BA"}
{"version":3,"file":"matomo-tracking.min.js","sources":["src/matomo-tracking.js"],"names":["_paq","window","embedTrackingCode","u","d","document","g","createElement","s","getElementsByTagName","push","src","async","defer","appendChild","addEventListener"],"mappings":"AAMA,IAAIA,KAAOC,OAAOD,MAAQ,GAM1B,SAASE,oBACR,IAAIC,EAAI,+BACPC,EAAIC,SACJC,EAAIF,EAAEG,cAAe,UACrBC,EAAIJ,EAAEK,qBAAsB,QAAU,GACvCT,KAAKU,KAAM,CAAE,gBAAiBP,EAAI,cAClCH,KAAKU,KAAM,CAAE,YAAa,OAC1BJ,EAAEK,IAAMR,EAAI,WACZG,EAAEM,OAAQ,EACVN,EAAEO,OAAQ,EACVL,EAAEM,YAAaR,GAfhBN,KAAKU,KAAM,CAAE,aAAc,CAAE,6BAC7BV,KAAKU,KAAM,CAAE,kBACbV,KAAKU,KAAM,CAAE,uBAgBRT,OAAOc,iBACXd,OAAOc,iBAAkB,OAAQb,mBAAmB,GAEpDA"}
2 changes: 0 additions & 2 deletions js/src/matomo-tracking.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ function embedTrackingCode() {

if ( window.addEventListener ) {
window.addEventListener( 'load', embedTrackingCode, false );
} else if ( window.attachEvent ) { /* Support for IE8 */
window.attachEvent( 'onload', embedTrackingCode );
} else {
embedTrackingCode();
}

0 comments on commit 90d3fba

Please sign in to comment.