mirror of https://github.com/sveltejs/svelte
parent
9ac958a77a
commit
fe9a69ca6f
@ -1,7 +1,9 @@
|
||||
declare const global: any;
|
||||
|
||||
export const globals = (typeof window !== 'undefined'
|
||||
? window
|
||||
: typeof globalThis !== 'undefined'
|
||||
? globalThis
|
||||
: global) as unknown as typeof globalThis;
|
||||
? window
|
||||
: typeof globalThis !== 'undefined'
|
||||
? globalThis
|
||||
: global);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in new issue