From 8cc4dc42f034d6e8bdd6b42f6fcfc034f134a880 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Thu, 13 Jun 2024 09:19:02 +0200 Subject: [PATCH] chore: Remove useless no conflict as it is never used --- src/ts/export/global.ts | 13 +------------ src/ts/index.ts | 1 - 2 files changed, 1 insertion(+), 13 deletions(-) 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