Skip to content

Commit

Permalink
removed CustomEvent polyfill (for IE)
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Jul 17, 2022
1 parent 5aeba64 commit deb19cc
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions webclient/src/history-states.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,6 @@

// TODO: only if initialized and fallback==false

// CustomEvent polyfill (for IE)
/* (function () {
if ( typeof window.CustomEvent === "function" ) return false;
function CustomEvent ( event, params ) {
params = params || { bubbles: false, cancelable: false, detail: null };
const evt = document.createEvent( 'CustomEvent' );
evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail );
return evt;
}
window.CustomEvent = CustomEvent;
})(); */

(function () {
const stateIndexSymbol = "__state__index__";
const stateDataSymbol = "viewState";
Expand Down

0 comments on commit deb19cc

Please sign in to comment.