various cooking

This commit is contained in:
velzie 2024-07-15 14:38:53 -04:00
parent 3fb846036e
commit 408bf39ffd
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F
11 changed files with 199 additions and 132 deletions

View file

@ -1,11 +1,13 @@
import { locationProxy } from "./location";
import { windowProxy } from "./window";
import { documentProxy, windowProxy } from "./window";
function scope(identifier: any) {
if (identifier instanceof Window) {
return windowProxy;
} else if (identifier instanceof Location) {
return locationProxy;
} else if (identifier instanceof Document) {
return documentProxy;
}
return identifier;