fix: console

This commit is contained in:
Xmader 2020-11-25 23:57:39 -05:00
parent 1f132bdfbd
commit f3fc5aeb6a
No known key found for this signature in database
GPG key ID: A20B97FB9EB730E4

View file

@ -52,7 +52,7 @@ export const getUnsafeWindow = (): Window => {
return window.eval('window') as Window return window.eval('window') as Window
} }
export const console: Console = window.console // Object.is(window.console, unsafeWindow.console) == false export const console: Console = (window || global).console // Object.is(window.console, unsafeWindow.console) == false
export const windowOpen: Window['open'] = (...args): Window | null => { export const windowOpen: Window['open'] = (...args): Window | null => {
return window.open(...args) // Object.is(window.open, unsafeWindow.open) == false return window.open(...args) // Object.is(window.open, unsafeWindow.open) == false