Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
henrytao-me committed Oct 23, 2024
1 parent 6e949aa commit 6f19621
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/polyfill/source/Window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export class Window extends EventTarget {

static setGlobal(window: Window) {
for (const property in window) {
if (window[property] === window) {
window[property] = globalThis;
if ((window as any)[property] === window) {
(window as any)[property] = globalThis;
}
}

Expand Down

0 comments on commit 6f19621

Please sign in to comment.