webview / webview_deno

🌐 Deno bindings for webview, a tiny library for creating web-based desktop GUIs
https://deno.land/x/webview
MIT License
1.44k stars 75 forks source link

fix: main thread check in deno 2 #177

Closed congzhangzh closed 1 month ago

congzhangzh commented 1 month ago

need a robust way to check if it is running under the main thread or not, as self.window is not exist any more!

ref: https://github.com/denoland/deno/pull/22057