diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-02-12 21:14:02 -0500 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-02-18 23:04:59 -0500 |
commit | 42408febe8cdf9e30ff8d1a3bb13f4994906c53b (patch) | |
tree | 92ab3408d426f1d18a511aa16130357ed074410a /js/globals.ts | |
parent | 27afbd135162b435c8af22b18622656ccab12174 (diff) |
Add window.location
Diffstat (limited to 'js/globals.ts')
-rw-r--r-- | js/globals.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/globals.ts b/js/globals.ts index e0fa6ef12..935890be4 100644 --- a/js/globals.ts +++ b/js/globals.ts @@ -58,6 +58,8 @@ window.clearInterval = timers.clearTimer; window.console = new consoleTypes.Console(libdeno.print); window.setTimeout = timers.setTimeout; window.setInterval = timers.setInterval; +// tslint:disable-next-line:no-any +window.location = (undefined as unknown) as domTypes.Location; // When creating the runtime type library, we use modifications to `window` to // determine what is in the global namespace. When we put a class in the |