소스 검색

renamed variable

Gildas 7 년 전
부모
커밋
3615b43b2a
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  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) {