Skip to content

Commit

Permalink
fix: flip LMB and MMB action not working
Browse files Browse the repository at this point in the history
  • Loading branch information
igorlogius committed Aug 19, 2024
1 parent c91643c commit ae7de63
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
7 changes: 6 additions & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,15 +260,20 @@ function onBAClicked(tab, info) {
}
} else {
if (info.button === 1) {
browser.browserAction.setPopup({
popup: "",
});
onCommand(toolbarAction);
} else {
// default
browser.browserAction.setPopup({
popup: "popup.html",
});
browser.browserAction.openPopup();
}
}
browser.browserAction.setPopup({
popup: "",
});
}

async function onInstalled(details) {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@
"description": "__MSG_addonDesc__",
"permissions": ["clipboardWrite", "storage", "menus", "tabs"],
"optional_permissions": ["notifications"],
"version": "1.16.52"
"version": "1.16.53"
}
1 change: 0 additions & 1 deletion options.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ function onDOMContentLoaded() {
.then((obj) => {
let el = document.getElementById(id);
let val = obj[id];
console.debug(id, val);

if (typeof val !== "undefined") {
if (el.type === "checkbox") {
Expand Down
18 changes: 9 additions & 9 deletions popup.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/* global browser */

const tipCollection = [
browser.i18n.getMessage("tip1"),
browser.i18n.getMessage("tip2"),
browser.i18n.getMessage("tip3"),
browser.i18n.getMessage("tip4"),
browser.i18n.getMessage("tip5"),
browser.i18n.getMessage("tip6"),
browser.i18n.getMessage("tip7"),
browser.i18n.getMessage("tip8"),
browser.i18n.getMessage("tip9")
browser.i18n.getMessage("tip1"),
browser.i18n.getMessage("tip2"),
browser.i18n.getMessage("tip3"),
browser.i18n.getMessage("tip4"),
browser.i18n.getMessage("tip5"),
browser.i18n.getMessage("tip6"),
browser.i18n.getMessage("tip7"),
browser.i18n.getMessage("tip8"),
browser.i18n.getMessage("tip9"),
];

function onDOMContentLoaded() {
Expand Down

0 comments on commit ae7de63

Please sign in to comment.