Skip to content

Commit 9bc378b

Browse files
committed
fix: script origin to use full path and not hostname
1 parent ffd956a commit 9bc378b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

web/rsonpath-website/src/eframe.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ fn create_worker() -> impl Future<Output = Result<web_sys::Worker, JsValue>> {
4747
let origin = web_sys::window()
4848
.expect("window to be available")
4949
.location()
50-
.origin()
51-
.expect("origin to be available");
50+
.href()
51+
.expect("location href to be available");
5252

5353
let script = Array::new();
5454
script.push(

0 commit comments

Comments
 (0)