mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-12 10:39:57 +00:00
Allow empty frame ID when opening receiver selector from tools menu
This commit is contained in:
@@ -163,9 +163,6 @@ async function initMenus () {
|
|||||||
if (tab?.id === undefined) {
|
if (tab?.id === undefined) {
|
||||||
throw logger.error("Menu handler tab ID not found.");
|
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) {
|
if (!info.pageUrl) {
|
||||||
throw logger.error("Menu handler page URL not found.");
|
throw logger.error("Menu handler page URL not found.");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import ShimManager from "../background/ShimManager";
|
|||||||
|
|
||||||
interface LoadSenderOptions {
|
interface LoadSenderOptions {
|
||||||
tabId: number;
|
tabId: number;
|
||||||
frameId: number;
|
frameId?: number;
|
||||||
selection: ReceiverSelection;
|
selection: ReceiverSelection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user