diff --git a/src/constants.ts b/src/constants.ts index 38904bb..0b428e2 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -31,7 +31,7 @@ export const sessionStorageAllowed = typeof sessionStorage?.setItem !== "undefined" && (() => { try { - const key = `_bytm_test_${randomId(4)}`; + const key = `_ses_test_${randomId(4)}`; sessionStorage.setItem(key, "test"); sessionStorage.removeItem(key); return true; diff --git a/src/utils.ts b/src/utils.ts index 1399d27..4f27194 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -99,6 +99,6 @@ export function addStyle(css: string, ref?: string) { if(!domLoaded) throw new Error("DOM has not finished loading yet"); const elem = addGlobalStyle(css); - elem.id = `bytm-global-style-${ref ?? randomId(5, 36)}`; + elem.id = `global-style-${ref ?? randomId(5, 36)}`; return elem; }