Skip to content

Commit 0e681ff

Browse files
author
Ilan Bar-Magen
committed
scrap also link tags with rel='alternate'
1 parent d21328d commit 0e681ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/puppeteer_utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const enableLogging = opt => {
108108
const getLinks = async opt => {
109109
const { page } = opt;
110110
const anchors = await page.evaluate(() =>
111-
Array.from(document.querySelectorAll("a")).map(anchor => {
111+
Array.from(document.querySelectorAll("a,link[rel='alternate']")).map(anchor => {
112112
if (anchor.href.baseVal) {
113113
const a = document.createElement("a");
114114
a.href = anchor.href.baseVal;

0 commit comments

Comments
 (0)