diff --git a/src/ts/export/global.ts b/src/ts/export/global.ts index 9c839ce..6630a43 100644 --- a/src/ts/export/global.ts +++ b/src/ts/export/global.ts @@ -7,15 +7,4 @@ declare global { } } -const // Map over CookieNotice in case of overwrite - _CookieNotice = window.CookieNotice; - -CookieNotice.noConflict = function (deep = false) { - if (deep && window.CookieNotice === CookieNotice) { - window.CookieNotice = _CookieNotice; - } - - return CookieNotice; -}; - -window.CookieNotice = CookieNotice.noConflict(); +window.CookieNotice = CookieNotice; diff --git a/src/ts/index.ts b/src/ts/index.ts index d01be90..2bea15b 100644 --- a/src/ts/index.ts +++ b/src/ts/index.ts @@ -38,7 +38,6 @@ export default class CookieNotice { restrictCloseModal: boolean; - static noConflict: (deep?: boolean) => typeof CookieNotice; constructor(config: Record) { // * Setup Config