diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2018-12-18 11:07:47 +1000 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-12-17 20:07:47 -0500 |
commit | 91a41ca124ffb6e9c025ca2cb35121cca139083c (patch) | |
tree | 60da0ba48c0ffc3d3425840ea7beb2a07a36b344 /js/globals.ts | |
parent | 1e54f1d47362308d7eabb02b3ddaa1f670e4ca08 (diff) |
Add URL implementation (#1359)
Diffstat (limited to 'js/globals.ts')
-rw-r--r-- | js/globals.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/globals.ts b/js/globals.ts index cf45b4239..ac66f77e6 100644 --- a/js/globals.ts +++ b/js/globals.ts @@ -16,6 +16,7 @@ import * as fetchTypes from "./fetch"; import * as headers from "./headers"; import * as textEncoding from "./text_encoding"; import * as timers from "./timers"; +import * as url from "./url"; import * as urlSearchParams from "./url_search_params"; // These imports are not exposed and therefore are fine to just import the @@ -56,6 +57,8 @@ window.Blob = blob.DenoBlob; export type Blob = blob.DenoBlob; window.File = file.DenoFile; export type File = file.DenoFile; +window.URL = url.URL; +export type URL = url.URL; window.URLSearchParams = urlSearchParams.URLSearchParams; export type URLSearchParams = urlSearchParams.URLSearchParams; |