Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deno --watch flag doesn't work while webview is running #161

Open
ozaner opened this issue Sep 19, 2023 · 0 comments
Open

deno --watch flag doesn't work while webview is running #161

ozaner opened this issue Sep 19, 2023 · 0 comments

Comments

@ozaner
Copy link

ozaner commented Sep 19, 2023

Consider this minimal example:

import { Webview } from "https://deno.land/x/[email protected]/mod.ts";

const html = `
  <html><body>
    <h1>Hello from deno v${Deno.version.deno}</h1>
  </body></html>`;

const webview = new Webview();
webview.navigate(`data:text/html,${encodeURIComponent(html)}`);
webview.run();

Run the program with deno run -A --unstable --watch index.ts. You'll find that deno no longer restarts the program when a file is changed. It seems that after webview.run() is called, watcher events are blocked.

I'm using the latest version of deno as of writing (v1.36.4).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant