Explorar el Código

fixed unwanted reset of the selected profile on extension reload

Gildas hace 7 años
padre
commit
bf4b7ec28e
Se han modificado 1 ficheros con 1 adiciones y 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) {
 			const tabs = await browser.tabs.query({});
 			Object.keys(persistentData).filter(key => {
-				if (key != "autoSaveAll" && key != "autoSaveUnpinned") {
+				if (key != "autoSaveAll" && key != "autoSaveUnpinned" && key != "profileName") {
 					return !tabs.find(tab => tab.id == key);
 				}
 			}).forEach(tabId => delete persistentData[tabId]);