فهرست منبع

workaround to avoid further errors in Chrome

Former-commit-id: a38f7b74b77a5aa5b77cebcc14827f16c15e4dc1
Gildas 6 سال پیش
والد
کامیت
8e35c18c97
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      extension/core/content/content-bootstrap.js

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

@@ -54,16 +54,16 @@ this.singlefile.extension.core.content.bootstrap = this.singlefile.extension.cor
 	});
 	return {};
 
-	async function onMessage(message) {
+	function onMessage(message) {
 		if (autoSaveEnabled && message.method == "content.autosave") {
 			initAutoSavePage(message);
-			return {};
+			return Promise.resolve({});
 		}
 		if (message.method == "content.init") {
 			options = message.options;
 			autoSaveEnabled = message.autoSaveEnabled;
 			refresh();
-			return {};
+			return Promise.resolve({});
 		}
 		if (message.method == "devtools.resourceCommitted") {
 			singlefile.extension.core.content.updatedResources[message.url] = { content: message.content, type: message.type, encoding: message.encoding };