added a default 'Open SiteCompanion' button for unknown sites

This commit is contained in:
2026-01-18 19:41:00 -05:00
parent 47cf450bf5
commit 23d26d2913
3 changed files with 41 additions and 7 deletions

View File

@@ -342,6 +342,12 @@ chrome.runtime.onConnect.addListener((port) => {
});
chrome.runtime.onMessage.addListener((message) => {
if (message?.type === "OPEN_POPUP") {
if (chrome.action?.openPopup) {
void chrome.action.openPopup().catch(() => {});
}
return;
}
if (message?.type === "RUN_SHORTCUT") {
const shortcutId = message.shortcutId || "";
if (shortcutId) {