aboutsummaryrefslogtreecommitdiff
path: root/web/script/player/player.ts
diff options
context:
space:
mode:
Diffstat (limited to 'web/script/player/player.ts')
-rw-r--r--web/script/player/player.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/script/player/player.ts b/web/script/player/player.ts
index 5226128..aefc5e6 100644
--- a/web/script/player/player.ts
+++ b/web/script/player/player.ts
@@ -186,7 +186,7 @@ function get_continue_time(w: WatchedState): number {
}
function get_query_start_time() {
- const u = new URL(window.location.href)
+ const u = new URL(globalThis.location.href)
const p = u.searchParams.get("t")
if (!p) return
const x = parseFloat(p)