delete useless globals

This commit is contained in:
velzie 2024-07-13 22:24:12 -04:00
parent 4ce4226afa
commit 7f0663425a
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F
5 changed files with 30 additions and 31 deletions

View file

@ -1,12 +1,15 @@
import { locationProxy } from "./location";
import { windowProxy } from "./window";
function scope(identifier: any) {
if (identifier instanceof Window) {
return window.__window;
return windowProxy;
} else if (identifier instanceof Location) {
return window.__location;
return locationProxy;
}
return identifier;
}
// shorthand because this can get out of hand reall quickly
window.__s = scope;
window.__s = scope;