Skip to content

Limitations and Workarounds

winteru edited this page Oct 4, 2023 · 7 revisions

1. Async function in Node.js won't work

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

2. No API for changing the icon of the Window

Related and Workaround: https://github.com/webview/webview#app-distribution

Feel free to edit! Any contribution to Wiki is welcomed!

Clone this wiki locally