Use window.location instead of location

This commit is contained in:
bytedream committed 2022-07-16 02:34:22 +02:00
1 parent 424e34190c
commit e146649bbf
1 file changed
+1 -1
+1 -1
View File
@@ -20,7 +20,7 @@ async function main() {
} }
const url = await match.match(re) 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() main()