Răsfoiți Sursa

renamed message id

Gildas 7 ani în urmă
părinte
comite
09f5ddb51a
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 1 1
      extension/core/bg/bg.js
  2. 1 1
      extension/core/content/content-frame.js

+ 1 - 1
extension/core/bg/bg.js

@@ -95,7 +95,7 @@ singlefile.core = (() => {
 		}
 		await executeScripts(tab.id, contentScriptFiles, { allFrames: false });
 		if (options.frameId) {
-			await browser.tabs.sendMessage(tab.id, { processStart: true, options }, { frameId: options.frameId });
+			await browser.tabs.sendMessage(tab.id, { processStartFrame: true, options }, { frameId: options.frameId });
 		} else {
 			await browser.tabs.sendMessage(tab.id, { processStart: true, options });
 		}

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

@@ -24,7 +24,7 @@ this.singlefile.frame = this.singlefile.frame || (() => {
 
 	if (window != top) {
 		browser.runtime.onMessage.addListener(async message => {
-			if (message.processStart) {
+			if (message.processStartFrame) {
 				message.options.content = docHelper.getDoctype(document) + document.documentElement.outerHTML;
 				message.options.frameId = null;
 				message.options.url = document.location.href;