Merge pull request #2616 from dannycolin/bug1958
Fix #1958 - Propagate container list reordering in Firefox menus
This commit is contained in:
@@ -211,6 +211,11 @@ const Logic = {
|
|||||||
async saveContainerOrder(rows) {
|
async saveContainerOrder(rows) {
|
||||||
const containerOrder = {};
|
const containerOrder = {};
|
||||||
rows.forEach((node, index) => {
|
rows.forEach((node, index) => {
|
||||||
|
if (typeof browser.contextualIdentities.move === "function") {
|
||||||
|
browser.contextualIdentities.move(
|
||||||
|
node.dataset.containerId, index);
|
||||||
|
}
|
||||||
|
|
||||||
return containerOrder[node.dataset.containerId] = index;
|
return containerOrder[node.dataset.containerId] = index;
|
||||||
});
|
});
|
||||||
await browser.storage.local.set({
|
await browser.storage.local.set({
|
||||||
|
|||||||
Reference in New Issue
Block a user