chore: Remove useless no conflict as it is never used
This commit is contained in:
parent
4c59976da0
commit
8cc4dc42f0
2 changed files with 1 additions and 13 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@ export default class CookieNotice {
|
|||
|
||||
restrictCloseModal: boolean;
|
||||
|
||||
static noConflict: (deep?: boolean) => typeof CookieNotice;
|
||||
|
||||
constructor(config: Record<string, CookieOptions>) {
|
||||
// * Setup Config
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue