fix icon when opening an unstyled Options frame

...and the containing page is styled
This commit is contained in:
tophf 2022-01-24 22:49:27 +03:00
parent e54178a43c
commit f740686cb5

View File

@ -167,7 +167,8 @@
res = msg.send(message); res = msg.send(message);
} else { } else {
res = deepMerge(await bg.msg._execute(TARGETS.extension, message, { 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(), tab: NEEDS_TAB_IN_SENDER.includes(path.join('.')) && await getOwnTab(),
url: location.href, url: location.href,
})); }));