Skip to content

Commit

Permalink
chore: more examples
Browse files Browse the repository at this point in the history
  • Loading branch information
twlite committed Oct 9, 2024
1 parent 22f1746 commit d6409af
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/multiple.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Application } from '../index.js'

const webview1 = new Application();

webview1.createBrowserWindow({ url: 'https://nodejs.org' });

const webview2 = new Application();
webview2.createBrowserWindow({ url: 'https://wikipedia.org' });

await Promise.all([webview1.run(), webview2.run()]);

0 comments on commit d6409af

Please sign in to comment.