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) {