summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2020-04-12 16:42:01 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2020-04-12 19:11:18 +0300
commite627ab2537d6aee5323cf03e594be472db1a1881 (patch)
tree6b92a1fdf50ae4c281fc0806c1c6fb231a6a9d3f
parente6078ce8f6e5d46c50cd1c63d33177939cbb24a0 (diff)
fix optionsContext URL for root popup
-rw-r--r--ext/fg/js/frontend-initialize.js2
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);