Procházet zdrojové kódy

pass frame content to the processor

Gildas před 7 roky
rodič
revize
19fc86d46f
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      lib/single-file/single-file-core.js

+ 2 - 1
lib/single-file/single-file-core.js

@@ -469,9 +469,10 @@ this.SingleFileCore = (() => {
 						options.url = frameData.baseURI;
 						options.windowId = frameWindowId;
 						if (frameData.content) {
+							options.content = frameData.content;
 							frameData.processor = new PageProcessor(options);
 							frameData.frameElement = frameElement;
-							await frameData.processor.loadPage(frameData.content);
+							await frameData.processor.loadPage();
 							return frameData.processor.initialize();
 						}
 					} else {