diff options
Diffstat (limited to 'cli/js/web/url.ts')
-rw-r--r-- | cli/js/web/url.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/js/web/url.ts b/cli/js/web/url.ts index 1a6f4eb9d..374997a1e 100644 --- a/cli/js/web/url.ts +++ b/cli/js/web/url.ts @@ -74,7 +74,7 @@ function generateUUID(): string { } // Keep it outside of URL to avoid any attempts of access. -export const blobURLMap = new Map<string, domTypes.Blob>(); +export const blobURLMap = new Map<string, Blob>(); function isAbsolutePath(path: string): boolean { return path.startsWith("/"); @@ -373,7 +373,7 @@ export class URL implements domTypes.URL { } // TODO(kevinkassimo): implement MediaSource version in the future. - static createObjectURL(b: domTypes.Blob): string { + static createObjectURL(b: Blob): string { const origin = globalThis.location.origin || "http://deno-opaque-origin"; const key = `blob:${origin}/${generateUUID()}`; blobURLMap.set(key, b); |