summaryrefslogtreecommitdiff
path: root/cli/js/web/url.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-05-01 20:15:28 +0200
committerGitHub <noreply@github.com>2020-05-01 20:15:28 +0200
commit6661e7e287aa595eccdc8d49940c40953b1f69bc (patch)
tree4e936d8aa3ee3acbc7c012072d160a5793401c93 /cli/js/web/url.ts
parent5d3c49082ffa96fc97af1e7bf637c930dd9cdf66 (diff)
BREAKING: remove window.location and self.location (#5034)
This commit removes "location" global available on "window", "globalThis" and "self".
Diffstat (limited to 'cli/js/web/url.ts')
-rw-r--r--cli/js/web/url.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/js/web/url.ts b/cli/js/web/url.ts
index 3d513a010..1ae24ff87 100644
--- a/cli/js/web/url.ts
+++ b/cli/js/web/url.ts
@@ -405,7 +405,7 @@ export class URLImpl implements URL {
// TODO(kevinkassimo): implement MediaSource version in the future.
static createObjectURL(b: Blob): string {
- const origin = globalThis.location.origin || "http://deno-opaque-origin";
+ const origin = "http://deno-opaque-origin";
const key = `blob:${origin}/${generateUUID()}`;
blobURLMap.set(key, b);
return key;