clan-app: Add webview hot-reloading

This commit is contained in:
Qubasa
2024-07-09 15:39:27 +02:00
parent 668b4a0a9c
commit 444be70796
7 changed files with 88 additions and 16 deletions

View File

@@ -54,7 +54,7 @@ class MainWindow(Adw.ApplicationWindow):
# Override platform specific functions
API.register(open_file)
webview = WebView(methods=API._registry)
webview = WebView(methods=API._registry, content_uri=config.content_uri)
stack_view.add_named(webview.get_webview(), "webview")
stack_view.set_visible_child_name(config.initial_view)