Quellcode durchsuchen

renamed variable

Gildas vor 7 Jahren
Ursprung
Commit
92a117161f
1 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 4 4
      extension/core/content/content-bootstrap.js

+ 4 - 4
extension/core/content/content-bootstrap.js

@@ -22,7 +22,7 @@
 
 this.singlefile.bootstrap = this.singlefile.bootstrap || (async () => {
 
-	let listenerAdded, options, autoSaveEnabled, autoSaveTimeout, autoSavingPage;
+	let unloadListenerAdded, options, autoSaveEnabled, autoSaveTimeout, autoSavingPage;
 	browser.runtime.sendMessage({ isAutoSaveEnabled: true }).then(message => {
 		options = message.options;
 		autoSaveEnabled = message.autoSaveEnabled;
@@ -81,15 +81,15 @@ this.singlefile.bootstrap = this.singlefile.bootstrap || (async () => {
 
 	async function refresh() {
 		if (autoSaveEnabled && options && (options.autoSaveUnload || options.autoSaveLoadOrUnload)) {
-			if (!listenerAdded) {
+			if (!unloadListenerAdded) {
 				addEventListener("unload", onUnload);
 				addEventListener("single-file-push-state", onUnload);
-				listenerAdded = true;
+				unloadListenerAdded = true;
 			}
 		} else {
 			removeEventListener("unload", onUnload);
 			removeEventListener("single-file-push-state", onUnload);
-			listenerAdded = false;
+			unloadListenerAdded = false;
 		}
 	}