mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 15:00:01 -04:00
prettier
This commit is contained in:
parent
fa779017ad
commit
d6dd1d4ca3
20 changed files with 363 additions and 379 deletions
|
@ -3,7 +3,11 @@ import { documentProxy, windowProxy } from "./window";
|
|||
|
||||
function scope(identifier: any) {
|
||||
// this will break iframe postmessage!
|
||||
if (identifier instanceof Window || identifier instanceof top.window.Window || identifier instanceof parent.window.Window) {
|
||||
if (
|
||||
identifier instanceof Window ||
|
||||
identifier instanceof top.window.Window ||
|
||||
identifier instanceof parent.window.Window
|
||||
) {
|
||||
return windowProxy;
|
||||
} else if (identifier instanceof Location) {
|
||||
return locationProxy;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue