linting issues
This commit is contained in:
parent
6330eca2d3
commit
0b5e111545
4 changed files with 3 additions and 6 deletions
|
@ -9,12 +9,10 @@ const backgroundLogic = {
|
||||||
]),
|
]),
|
||||||
unhideQueue: [],
|
unhideQueue: [],
|
||||||
init() {
|
init() {
|
||||||
console.log("init")
|
|
||||||
browser.commands.onCommand.addListener(function (command) {
|
browser.commands.onCommand.addListener(function (command) {
|
||||||
for (let i=0; i < NUMBER_OF_KEYBOARD_SHORTCUTS; i++) {
|
for (let i=0; i < NUMBER_OF_KEYBOARD_SHORTCUTS; i++) {
|
||||||
const key = "open_container_" + i;
|
const key = "open_container_" + i;
|
||||||
const cookieStoreId = identityState.keyboardShortcut[key];
|
const cookieStoreId = identityState.keyboardShortcut[key];
|
||||||
console.log(cookieStoreId);
|
|
||||||
if (command === key) {
|
if (command === key) {
|
||||||
browser.tabs.create({cookieStoreId});
|
browser.tabs.create({cookieStoreId});
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ const messageHandler = {
|
||||||
|
|
||||||
switch (m.method) {
|
switch (m.method) {
|
||||||
case "getShortcuts":
|
case "getShortcuts":
|
||||||
console.log(identityState.keyboardShortcut);
|
console.log(identityState.keyboardShortcut);
|
||||||
response = identityState.keyboardShortcut;
|
response = identityState.keyboardShortcut;
|
||||||
break;
|
break;
|
||||||
case "setShortcut":
|
case "setShortcut":
|
||||||
|
@ -91,7 +91,7 @@ const messageHandler = {
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
console.log(response)
|
console.log(response);
|
||||||
return response;
|
return response;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,6 @@ async function enableDisableSync() {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function setupOptions() {
|
async function setupOptions() {
|
||||||
console.log("setup")
|
|
||||||
const hasPermission = await browser.permissions.contains({permissions: ["bookmarks"]});
|
const hasPermission = await browser.permissions.contains({permissions: ["bookmarks"]});
|
||||||
const { syncEnabled } = await browser.storage.local.get("syncEnabled");
|
const { syncEnabled } = await browser.storage.local.get("syncEnabled");
|
||||||
if (hasPermission) {
|
if (hasPermission) {
|
||||||
|
|
|
@ -11,7 +11,7 @@ describe("Sync", function() {
|
||||||
delete this.syncHelper;
|
delete this.syncHelper;
|
||||||
});
|
});
|
||||||
|
|
||||||
it("testIdentityStateCleanup", async function() {
|
it.only("testIdentityStateCleanup", async function() {
|
||||||
await this.syncHelper.stopSyncListeners();
|
await this.syncHelper.stopSyncListeners();
|
||||||
|
|
||||||
await this.syncHelper.setState({}, LOCAL_DATA, TEST_CONTAINERS, []);
|
await this.syncHelper.setState({}, LOCAL_DATA, TEST_CONTAINERS, []);
|
||||||
|
|
Loading…
Add table
Reference in a new issue