Use window.location instead of location

This commit is contained in:
bytedream 2022-07-16 02:34:22 +02:00
parent 424e34190c
commit e146649bbf

View File

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