Allow empty frame ID when opening receiver selector from tools menu

This commit is contained in:
hensm
2020-01-30 23:28:49 +00:00
parent e6405d7c6e
commit 5e4c8d20f4
2 changed files with 1 additions and 4 deletions

View File

@@ -163,9 +163,6 @@ async function initMenus () {
if (tab?.id === undefined) {
throw logger.error("Menu handler tab ID not found.");
}
if (info.frameId === undefined) {
throw logger.error("Menu handler frame ID not found.");
}
if (!info.pageUrl) {
throw logger.error("Menu handler page URL not found.");
}

View File

@@ -12,7 +12,7 @@ import ShimManager from "../background/ShimManager";
interface LoadSenderOptions {
tabId: number;
frameId: number;
frameId?: number;
selection: ReceiverSelection;
}