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()