chore: Remove useless no conflict as it is never used

This commit is contained in:
Jérémy Munsch 2024-06-13 09:19:02 +02:00
parent 4c59976da0
commit 8cc4dc42f0
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC
2 changed files with 1 additions and 13 deletions

View file

@ -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;

View file

@ -38,7 +38,6 @@ export default class CookieNotice {
restrictCloseModal: boolean;
static noConflict: (deep?: boolean) => typeof CookieNotice;
constructor(config: Record<string, CookieOptions>) {
// * Setup Config