Gildas 5 лет назад
Родитель
Сommit
467b514782
1 измененных файлов с 10 добавлено и 2 удалено
  1. 10 2
      extension/ui/bg/ui-options.js

+ 10 - 2
extension/ui/bg/ui-options.js

@@ -715,7 +715,11 @@
 	}
 	}
 
 
 	async function update() {
 	async function update() {
-		await pendingSave;
+		try {
+			await pendingSave;
+		} catch (error) {
+			// ignored
+		}
 		pendingSave = browser.runtime.sendMessage({
 		pendingSave = browser.runtime.sendMessage({
 			method: "config.updateProfile",
 			method: "config.updateProfile",
 			profileName: profileNamesInput.value,
 			profileName: profileNamesInput.value,
@@ -774,7 +778,11 @@
 				warnUnsavedPage: warnUnsavedPageInput.checked
 				warnUnsavedPage: warnUnsavedPageInput.checked
 			}
 			}
 		});
 		});
-		await pendingSave;
+		try {
+			await pendingSave;
+		} catch (error) {
+			// ignored
+		}
 	}
 	}
 
 
 	async function refreshExternalComponents() {
 	async function refreshExternalComponents() {