From deb19ccb77a1b8ffb9db0801441bfafc15b45cb4 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Thu, 16 Jun 2022 19:33:26 +0200 Subject: [PATCH] removed CustomEvent polyfill (for IE) --- webclient/src/history-states.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/webclient/src/history-states.js b/webclient/src/history-states.js index 034be0a26..bcc0c9fbc 100644 --- a/webclient/src/history-states.js +++ b/webclient/src/history-states.js @@ -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";