fixed mocha tests
This commit is contained in:
@@ -11,7 +11,7 @@ const messageHandler = {
|
||||
|
||||
switch (m.method) {
|
||||
case "getShortcuts":
|
||||
console.log(identityState.keyboardShortcut);
|
||||
console.log("getShortcuts", identityState.keyboardShortcut);
|
||||
response = identityState.keyboardShortcut;
|
||||
break;
|
||||
case "setShortcut":
|
||||
@@ -91,7 +91,7 @@ const messageHandler = {
|
||||
);
|
||||
break;
|
||||
}
|
||||
console.log(response);
|
||||
console.log(m.method, "response", response);
|
||||
return response;
|
||||
});
|
||||
|
||||
|
||||
+2
-2
@@ -39,8 +39,8 @@ async function setupOptions() {
|
||||
}
|
||||
|
||||
async function setupContainerShortcutSelects () {
|
||||
const keyboardShortcut = browser.runtime.sendMessage({method: "getShortcuts"});
|
||||
console.log(keyboardShortcut);
|
||||
const keyboardShortcut = await browser.runtime.sendMessage({method: "getShortcuts"});
|
||||
// console.log(keyboardShortcut);
|
||||
const identities = await browser.contextualIdentities.query({});
|
||||
const fragment = document.createDocumentFragment();
|
||||
const noneOption = document.createElement("option");
|
||||
|
||||
@@ -984,7 +984,6 @@ Logic.registerPanel(REOPEN_IN_CONTAINER_PICKER, {
|
||||
document.getElementById("picker-title").textContent = "Reopen This Site in";
|
||||
const fragment = document.createDocumentFragment();
|
||||
const currentTab = await Utils.currentTab();
|
||||
console.log(currentTab);
|
||||
const pickedFunction = function (identity) {
|
||||
const newUserContextId = Utils.userContextId(identity.cookieStoreId);
|
||||
Utils.reloadInContainer(
|
||||
|
||||
+1
-1
@@ -71,7 +71,7 @@
|
||||
"default_icon": "img/multiaccountcontainer-16.svg",
|
||||
"default_title": "Always open this in a Container",
|
||||
"default_popup": "pageActionPopup.html",
|
||||
"pinned": true,
|
||||
"pinned": false,
|
||||
"show_matches": ["*://*/*"]
|
||||
},
|
||||
"background": {
|
||||
|
||||
Reference in New Issue
Block a user