Explorar el Código

pass frame content to the processor

Gildas hace 7 años
padre
commit
19fc86d46f
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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 {