From f740686cb50d67b809bcfd581b37244a9fe1df0c Mon Sep 17 00:00:00 2001 From: tophf Date: Mon, 24 Jan 2022 22:49:27 +0300 Subject: [PATCH] fix icon when opening an unstyled Options frame ...and the containing page is styled --- js/msg.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/msg.js b/js/msg.js index 87bcc074..5b1ae7b1 100644 --- a/js/msg.js +++ b/js/msg.js @@ -167,7 +167,8 @@ res = msg.send(message); } else { res = deepMerge(await bg.msg._execute(TARGETS.extension, message, { - frameId: 0, // false in case of our Options frame but we really want to fetch styles early + // Using a fake id for our Options frame as we want to fetch styles early + frameId: window === top ? 0 : 1, tab: NEEDS_TAB_IN_SENDER.includes(path.join('.')) && await getOwnTab(), url: location.href, }));