open-im-sdk-web-wasm icon indicating copy to clipboard operation
open-im-sdk-web-wasm copied to clipboard

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

Open OrrinHatch opened this issue 1 year ago • 2 comments

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 avatar Sep 02 '24 03:09 OrrinHatch

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

OrrinHatch avatar Sep 02 '24 03:09 OrrinHatch

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

Bloomingg avatar Sep 02 '24 08:09 Bloomingg