Ver código fonte

renamed variable

Gildas 7 anos atrás
pai
commit
3615b43b2a
1 arquivos alterados com 4 adições e 4 exclusões
  1. 4 4
      node-jsdom/single-file-jsdom.js

+ 4 - 4
node-jsdom/single-file-jsdom.js

@@ -92,10 +92,10 @@ exports.getPageData = async options => {
 	options.doc = dom.window.document;
 	options.saveRawPage = true;
 	options.loadDeferredImages = false;
-	const processor = new (this.getClass())(options);
-	await processor.initialize();
-	await processor.run();
-	return processor.getPageData();
+	const singleFile = new SingleFile(options);
+	await singleFile.initialize();
+	await singleFile.run();
+	return singleFile.getPageData();
 };
 
 function parseDocContent(content) {