Global Feed Post Login
Replying to Avatar reya

In tauri v2 (beta), it is supporting spawn multiple webview inside main window, state (in rust) of main window will be share across child webviews too.

So Lume use this technique to implement column system, each column is actual webview, it can load any thing, include other nostr client (via url).

You also can control what data child webview can access too, like prevent child webview get user's private key.

You can check my implement here: https://github.com/lumehq/lume/blob/main/src-tauri/src/commands/window.rs

And demo for using Snort inside Lume: https://cdn.satellite.earth/e9ac4131cc6e2e86c72e8db9a4b3205983ad561ae1ef6564a45e11c3dfdc7f5d.mov

Avatar
reya 1y ago

the downside is child webview only work well on macOS now

Reply to this note

Please Login to reply.

Discussion

No replies yet.