diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2020-04-12 16:42:01 +0300 |
---|---|---|
committer | siikamiika <siikamiika@users.noreply.github.com> | 2020-04-12 19:11:18 +0300 |
commit | e627ab2537d6aee5323cf03e594be472db1a1881 (patch) | |
tree | 6b92a1fdf50ae4c281fc0806c1c6fb231a6a9d3f | |
parent | e6078ce8f6e5d46c50cd1c63d33177939cbb24a0 (diff) |
fix optionsContext URL for root popup
-rw-r--r-- | ext/fg/js/frontend-initialize.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fg/js/frontend-initialize.js b/ext/fg/js/frontend-initialize.js index e794c7c0..2c80c541 100644 --- a/ext/fg/js/frontend-initialize.js +++ b/ext/fg/js/frontend-initialize.js @@ -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); |