src/main/js/oidc-connector.js
/**
     * Apply polyfills for cross-browser functionality.
     * @private
     */
Apply polyfills for cross-browser functionality.
@private
Apply polyfills for cross - browser functionality . @private
function doPolyfill() {
        if ( typeof window.CustomEvent === 'function' ) {
            return;
        }
        function CustomEvent( event, params ) {
            params = params || { bubbles: false, cancelable: false, detail: undefined };
            const evt = document.createEvent( 'CustomEvent' );
            evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail );
            return evt;
        }
        CustomEvent.prototype = window.Event.prototype;
        window.CustomEvent = CustomEvent;
    }
function doPolyfill ( ) { if ( typeof window . CustomEvent === 'function' ) { return ; } function CustomEvent ( event , params ) { params = params || { bubbles : false , cancelable : false , detail : undefined } ; const evt = document . createEvent ( 'CustomEvent' ) ; evt . initCustomEvent ( event , params . bubbles , params . cancelable , params . detail ) ; return evt ; } CustomEvent . prototype = window . Event . prototype ; window . CustomEvent = CustomEvent ; }
Apply polyfills for cross-browser functionality.
Apply polyfills for cross - browser functionality .
// custom event polyfill