Explorar o código

ignore errors

Gildas %!s(int64=4) %!d(string=hai) anos
pai
achega
29295f8b87
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      extension/core/content/content-bootstrap.js

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

@@ -96,8 +96,8 @@ function init() {
 	if (previousLocationHref != location.href && !singlefile.pageInfo.processing) {
 		pageAutoSaved = false;
 		previousLocationHref = location.href;
-		browser.runtime.sendMessage({ method: "tabs.init", savedPageDetected: detectSavedPage(document) });
-		browser.runtime.sendMessage({ method: "ui.processInit" });
+		browser.runtime.sendMessage({ method: "tabs.init", savedPageDetected: detectSavedPage(document) }).catch(() => { });
+		browser.runtime.sendMessage({ method: "ui.processInit" }).catch(() => { });;
 	}
 }