Skip to content

Commit ca978f7

Browse files
committed
review + post merge fixes
1 parent 9370df3 commit ca978f7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/yew-agent/src/worker/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub use public::Public;
88
use super::*;
99
use js_sys::{Array, Reflect, Uint8Array};
1010
use serde::{Deserialize, Serialize};
11-
use wasm_bindgen::{closure::Closure, JsCast, JsValue};
11+
use wasm_bindgen::{closure::Closure, JsCast, JsValue, UnwrapThrowExt};
1212
use web_sys::{
1313
Blob, BlobPropertyBag, DedicatedWorkerGlobalScope, MessageEvent, Url, Worker, WorkerOptions,
1414
};
@@ -71,7 +71,7 @@ where
7171
}
7272

7373
fn worker_new(name_of_resource: &str, is_module: bool) -> Worker {
74-
let origin = gloo_utils::document().location().unwrap().origin().unwrap();
74+
let origin = gloo_utils::document().location().unwrap_throw().origin().unwrap_throw();
7575
let script_url = format!("{}/{}", origin, name_of_resource);
7676
let wasm_url = format!("{}/{}", origin, name_of_resource.replace(".js", "_bg.wasm"));
7777
let array = Array::new();

packages/yew-router/src/history.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use serde::Serialize;
1010
use thiserror::Error;
1111
use wasm_bindgen::{JsValue, UnwrapThrowExt};
1212
use yew::callback::Callback;
13-
use yew::utils::window;
13+
use gloo_utils::window;
1414

1515
use crate::utils::base_url;
1616
use crate::Routable;

0 commit comments

Comments
 (0)