Merge pull request #2616 from dannycolin/bug1958

Fix #1958 - Propagate container list reordering in Firefox menus
This commit is contained in:
Danny Colin 2024-08-14 10:31:54 -04:00 committed by GitHub
commit f9f5daf8f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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({