Browse Source

renamed function

Gildas 7 năm trước cách đây
mục cha
commit
27c157fe69
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      extension/core/content/content.js

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

@@ -39,7 +39,7 @@ this.singlefile.top = this.singlefile.top || (() => {
 		if (message.processStart && !processing && !message.options.frameId) {
 			processing = true;
 			try {
-				const page = await processMessage(message);
+				const page = await processPage(message.options);
 				await downloadPage(page, message.options);
 				revokeDownloadURL(page);
 			} catch (error) {
@@ -50,8 +50,8 @@ this.singlefile.top = this.singlefile.top || (() => {
 		}
 	}
 
-	async function processMessage(message) {
-		const options = await getOptions(message.options);
+	async function processPage(options) {
+		options = await getOptions(options);
 		const processor = new (SingleFile.getClass())(options);
 		fixInlineScripts();
 		fixHeadNoScripts();