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