|
@@ -511,6 +511,9 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
|
|
|
if (this.options.addProof) {
|
|
if (this.options.addProof) {
|
|
|
pageData.hash = await util.digest("SHA-256", content);
|
|
pageData.hash = await util.digest("SHA-256", content);
|
|
|
}
|
|
}
|
|
|
|
|
+ if (this.options.retrieveLinks) {
|
|
|
|
|
+ pageData.links = Array.from(new Set(Array.from(this.doc.links).map(linkElement => linkElement.href)));
|
|
|
|
|
+ }
|
|
|
return pageData;
|
|
return pageData;
|
|
|
}
|
|
}
|
|
|
|
|
|