fix: add type check on window
This commit is contained in:
parent
9a386fed7d
commit
ceffa292ca
|
@ -31,6 +31,7 @@ declare global {
|
|||
}
|
||||
|
||||
const IS_EXTENSION =
|
||||
typeof window !== "undefined" &&
|
||||
window.browser?.runtime?.id &&
|
||||
window.location.pathname.includes("_generated_background_page.html");
|
||||
|
||||
|
|
Loading…
Reference in New Issue