This repository was archived by the owner on Feb 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313
1414// Hack since TypeScript isn't compiling this for a worker.
1515declare const WorkerGlobalScope : any ;
16- declare const window : any ;
1716
1817export const zoneSymbol : ( name : string ) => string = ( n ) => `__zone_symbol__${ n } ` ;
19- const _global = typeof window === 'object' && window || typeof self === 'object' && self || global ;
18+ const _global : any = typeof window === 'object' && window || typeof self === 'object' && self || global ;
2019
2120export function bindArguments ( args : any [ ] , source : string ) : any [ ] {
2221 for ( let i = args . length - 1 ; i >= 0 ; i -- ) {
@@ -50,12 +49,12 @@ export const isNode: boolean =
5049 { } . toString . call ( process ) === '[object process]' ) ;
5150
5251export const isBrowser : boolean =
53- ! isNode && ! isWebWorker && ! ! ( typeof window !== 'undefined' && window [ 'HTMLElement' ] ) ;
52+ ! isNode && ! isWebWorker && ! ! ( typeof window !== 'undefined' && ( window as any ) [ 'HTMLElement' ] ) ;
5453
5554// we are in electron of nw, so we are both browser and nodejs
5655export const isMix : boolean = typeof process !== 'undefined' &&
5756 { } . toString . call ( process ) === '[object process]' && ! isWebWorker &&
58- ! ! ( typeof window !== 'undefined' && window [ 'HTMLElement' ] ) ;
57+ ! ! ( typeof window !== 'undefined' && ( window as any ) [ 'HTMLElement' ] ) ;
5958
6059export function patchProperty ( obj : any , prop : string ) {
6160 const desc = Object . getOwnPropertyDescriptor ( obj , prop ) || { enumerable : true , configurable : true } ;
You can’t perform that action at this time.
0 commit comments