Преглед изворни кода

check if the page is a seved page

Gildas пре 5 година
родитељ
комит
953ce22016
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      extension/core/content/content-bootstrap.js

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

@@ -34,7 +34,7 @@ this.singlefile.extension.core.content.bootstrap = this.singlefile.extension.cor
 	browser.runtime.sendMessage({ method: "autosave.init" }).then(message => {
 		options = message.options;
 		autoSaveEnabled = message.autoSaveEnabled;
-		if (options.autoOpenEditor) {
+		if (options.autoOpenEditor && detectSavedPage(document)) {
 			if (document.readyState == "loading") {
 				document.addEventListener("DOMContentLoaded", () => openEditor(document));
 			} else {