added a default 'Open SiteCompanion' button for unknown sites
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user