testing keyboard shortcuts
This commit is contained in:
@@ -331,4 +331,14 @@ const backgroundLogic = {
|
||||
cookieStoreId(userContextId) {
|
||||
return `firefox-container-${userContextId}`;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
browser.commands.onCommand.addListener(function (command) {
|
||||
if (command === "open_container_2") {
|
||||
browser.tabs.create({cookieStoreId: "firefox-container-2"});
|
||||
}
|
||||
if (command === "open_container_1") {
|
||||
console.log("Toggling the feature!");
|
||||
browser.tabs.create({cookieStoreId: "firefox-container-1"});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user