openimsdk / open-im-sdk-web-wasm

JS SDK for OpenIM Web use by Webassembly of go
https://openim.io
Apache License 2.0
35 stars 49 forks source link

[BUG] wasm_exec.js overwritten the native window.close method #123

Open OrrinHatch opened 2 months ago

OrrinHatch commented 2 months ago

OpenIM Server Version

3.8.0

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Docker Deployment

Bug Description and Steps to Reproduce

don't use the native window.close

Screenshots Link

No response

OrrinHatch commented 2 months ago

temporary solution: <script>var nativeClose = window.close;</script>

Bloomingg commented 2 months ago

Because the calls between wasm and js are all registered on the window method.