-
Notifications
You must be signed in to change notification settings - Fork 10
Limitations and Workarounds
winteru edited this page Oct 4, 2023
·
7 revisions
Due to the limitations of webview, setInterval
won't work after calling Webview.show().
Workaround:
let w = new Webview(true);
w.navigate("about:blank");
w.bind("foo", (w) => {
// write you setInterval code here
console.log("Hello");
});
w.init("setInterval(foo,1000)");
w.show();
Related: https://github.com/Winterreisender/webview-nodejs/discussions/7
or try to use Node.js Worker: #16
Related and Workaround: https://github.com/webview/webview#app-distribution
Feel free to edit! Any contribution to Wiki is welcomed!