diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-10-09 00:12:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-08 22:12:59 +0000 |
commit | dfc254cd57683f394f1b5fdca8c75200b2a9969d (patch) | |
tree | 25315d8183196486dbebae9d83dd7d2b00a65cec /cli/tsc/dts/lib.deno.window.d.ts | |
parent | d41d3b8e2f6079d806fb4bc4845b9ad681c20f00 (diff) |
fix: define window.name (#20804)
Closes https://github.com/denoland/deno/issues/20750
This matches what browsers do:
https://developer.mozilla.org/en-US/docs/Web/API/Window/name
In the future we might want to change the behavior to actually update
the process name, but that needs a bit of discussion regarding if
it needs a permission flag (that would make polyfiling `process.title`
setter really easy too).
Diffstat (limited to 'cli/tsc/dts/lib.deno.window.d.ts')
-rw-r--r-- | cli/tsc/dts/lib.deno.window.d.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/tsc/dts/lib.deno.window.d.ts b/cli/tsc/dts/lib.deno.window.d.ts index 2edb2ce8f..58b57e52c 100644 --- a/cli/tsc/dts/lib.deno.window.d.ts +++ b/cli/tsc/dts/lib.deno.window.d.ts @@ -37,6 +37,7 @@ declare interface Window extends EventTarget { localStorage: Storage; sessionStorage: Storage; caches: CacheStorage; + name: string; addEventListener<K extends keyof WindowEventMap>( type: K, @@ -292,3 +293,6 @@ declare var Location: { // The types there must first be split into window, worker and global types. /** @category Web APIs */ declare var location: Location; + +/** @category Web APIs */ +declare var name: string; |