浏览器支持情况嗅探 + 错误处理 #4

Open
opened 2023-05-08 17:50:07 +00:00 by jixunmoe · 1 comment
Owner

浏览器应支持:

  • Blob 相关 API (如 window.BlobURL.createObjectURL)
  • Web Worker: window.Worker
  • Web Assembly

可以在启动的时候生成一个文件传递给 Web Worker 进行处理,并对返回值进行验证。

浏览器应支持: - `Blob` 相关 API (如 `window.Blob`、`URL.createObjectURL`) - Web Worker: `window.Worker` - Web Assembly 可以在启动的时候生成一个文件传递给 Web Worker 进行处理,并对返回值进行验证。
jixunmoe added the
enhancement
label 2023-05-08 17:50:07 +00:00
jixunmoe added this to the Unlock Music (React) project 2023-05-08 17:50:07 +00:00
Author
Owner

若是 window.Worker 不可用,启动时可能就会报错了。

也许可以考虑做个新的入口脚本到 index.html?若是检测不对劲就改为渲染错误检测组件。

若是 `window.Worker` 不可用,启动时可能就会报错了。 也许可以考虑做个新的入口脚本到 `index.html`?若是检测不对劲就改为渲染错误检测组件。
Sign in to join this conversation.
No description provided.