소스 검색

fixed meta data retrieving

Gildas 7 년 전
부모
커밋
27d41256bf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/single-file/single-file-core.js

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

@@ -320,7 +320,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 			const creatorElement = this.doc.querySelector("meta[name=creator]");
 			this.options.info.creator = creatorElement ? creatorElement.content.trim() : "";
 			const publisherElement = this.doc.querySelector("meta[name=publisher]");
-			this.options.info.publisher = creatorElement ? publisherElement.content.trim() : "";
+			this.options.info.publisher = publisherElement ? publisherElement.content.trim() : "";
 			const url = new URL(this.baseURI);
 			let size;
 			if (this.options.displayStats) {