Просмотр исходного кода

ensure auto-save is enabled when auto-saving pages

Gildas 6 лет назад
Родитель
Сommit
dba487c8cc
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      extension/core/content/content-bootstrap.js

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

@@ -38,7 +38,7 @@ this.singlefile.extension.core.content.bootstrap = this.singlefile.extension.cor
 	return {};
 
 	async function onMessage(message) {
-		if (message.method == "content.autosave") {
+		if (autoSaveEnabled && message.method == "content.autosave") {
 			options = message.options;
 			await autoSavePage();
 			if (options.autoSaveRepeat) {