Skip to content

Commit

Permalink
fix: missing cmds
Browse files Browse the repository at this point in the history
fix: remove unused listener
  • Loading branch information
igorlogius committed Mar 19, 2024
1 parent fd08e90 commit b8a5aec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,23 @@ async function onCommand(cmd) {
ret = false;
switch (cmd) {
case "cpyalllnk":
case "cpyalllnknp":
tabs = await browser.tabs.query(qryObj);
ret = copyTabsAsHtml(tabs);
break;
case "cpyalltxt":
case "cpyalltxtnp":
tabs = await browser.tabs.query(qryObj);
ret = copyTabsAsText(tabs);
break;
case "cpysellnk":
case "cpysellnknp":
qryObj["highlighted"] = true;
tabs = await browser.tabs.query(qryObj);
ret = copyTabsAsHtml(tabs);
break;
case "cpyseltxt":
case "cpyseltxtnp":
qryObj["highlighted"] = true;
tabs = await browser.tabs.query(qryObj);
ret = copyTabsAsText(tabs);
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@
},
"permissions": ["clipboardWrite", "storage", "menus", "tabs"],
"optional_permissions": ["notifications"],
"version": "1.14.41"
"version": "1.14.42"
}
2 changes: 1 addition & 1 deletion options.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function onLoad() {
);
}

["toolbarAction", "noURLParams"].map((id) => {
["toolbarAction"].map((id) => {
browser.storage.local
.get(id)
.then((obj) => {
Expand Down

0 comments on commit b8a5aec

Please sign in to comment.