fix optionsContext URL for root popup

This commit is contained in:
siikamiika 2020-04-12 16:42:01 +03:00
parent e6078ce8f6
commit e627ab2537

View File

@ -69,7 +69,7 @@ async function main() {
await yomichan.prepare();
const data = window.frontendInitializationData || {};
const {id, depth=0, parentFrameId, url, proxy=false, isSearchPage=false} = data;
const {id, depth=0, parentFrameId, url=window.location.href, proxy=false, isSearchPage=false} = data;
const isIframe = !proxy && (window !== window.parent);