Explorar o código

fixed unwanted reset of the selected profile on extension reload

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
bf4b7ec28e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      extension/core/bg/tabs-data.js

+ 1 - 1
extension/core/bg/tabs-data.js

@@ -63,7 +63,7 @@ singlefile.tabsData = (() => {
 		if (persistentData) {
 		if (persistentData) {
 			const tabs = await browser.tabs.query({});
 			const tabs = await browser.tabs.query({});
 			Object.keys(persistentData).filter(key => {
 			Object.keys(persistentData).filter(key => {
-				if (key != "autoSaveAll" && key != "autoSaveUnpinned") {
+				if (key != "autoSaveAll" && key != "autoSaveUnpinned" && key != "profileName") {
 					return !tabs.find(tab => tab.id == key);
 					return !tabs.find(tab => tab.id == key);
 				}
 				}
 			}).forEach(tabId => delete persistentData[tabId]);
 			}).forEach(tabId => delete persistentData[tabId]);