Skip to content

Commit

Permalink
Merge pull request #2616 from dannycolin/bug1958
Browse files Browse the repository at this point in the history
Fix #1958 - Propagate container list reordering in Firefox menus
  • Loading branch information
dannycolin authored Aug 14, 2024
2 parents 1537e9f + 7305b54 commit f9f5daf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/js/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ const Logic = {
async saveContainerOrder(rows) {
const containerOrder = {};
rows.forEach((node, index) => {
if (typeof browser.contextualIdentities.move === "function") {
browser.contextualIdentities.move(
node.dataset.containerId, index);
}

return containerOrder[node.dataset.containerId] = index;
});
await browser.storage.local.set({
Expand Down

0 comments on commit f9f5daf

Please sign in to comment.