From e146649bbfd794196f9a0ac7afc62f930255050c Mon Sep 17 00:00:00 2001 From: bytedream Date: Sat, 16 Jul 2022 02:34:22 +0200 Subject: [PATCH] Use window.location instead of location --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 4e72641..ba7f9a1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -20,7 +20,7 @@ async function main() { } const url = await match.match(re) - location.assign(chrome.runtime.getURL(`ui/player/player.html?id=${match.id}&url=${encodeURIComponent(url)}&domains=${window.location.host}`)) + window.location.assign(chrome.runtime.getURL(`ui/player/player.html?id=${match.id}&url=${encodeURIComponent(url)}&domains=${window.location.host}`)) } main()