Skip to content

Commit e725416

Browse files
committed
fixup! feat: initial working prototype, uses polling :(
1 parent 13e1519 commit e725416

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src-tauri/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ pub fn listen_for_url_changes() {
149149
thread::spawn(move || {
150150
let app = &*get_app_handle().lock().expect("failed to get app handle");
151151
let mut main_window = app.get_webview_window("main").unwrap();
152-
let url = main_window.url().expect("Failed to get URL from main window");
152+
let url = main_window
153+
.url()
154+
.expect("Failed to get URL from main window");
153155
loop {
154156
let new_url = main_window.url().unwrap();
155157
if new_url != url {

0 commit comments

Comments
 (0)