Skip to content

fix: Replace the deprecated 'window' with 'globalThis' for Deno#2915

Merged
huozhi merged 1 commit intovercel:mainfrom
saul-atomrigs:feat/change-globalThis-deno
Mar 18, 2024
Merged

fix: Replace the deprecated 'window' with 'globalThis' for Deno#2915
huozhi merged 1 commit intovercel:mainfrom
saul-atomrigs:feat/change-globalThis-deno

Conversation

@saul-atomrigs
Copy link
Copy Markdown
Contributor

The window object became deprecated in Deno (denoland/deno#22057). Instead, they recommend us to use globalThis or self. For the change, I also referred to here (https://deno.land/x/udibo_react_app@0.3.3/env.ts?source=#L7)

@codesandbox-ci
Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@huozhi
Copy link
Copy Markdown
Member

huozhi commented Mar 18, 2024

Thanks! good to hear window is finally gone soon lol

@huozhi huozhi merged commit cd22c46 into vercel:main Mar 18, 2024
@DominicBao
Copy link
Copy Markdown

globalThis is not defined:globalThis 在一些低版本的浏览器上并不兼容

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants