mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-23 10:38:55 +00:00
parent
1de9eec356
commit
5833347ad8
@ -17,7 +17,7 @@ function inferTitle(url, callback) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const $ = cheerio.load(body);
|
const $ = cheerio.load(body);
|
||||||
const pageTitle = $('title').text().replace(/\//g, '');
|
const pageTitle = $('title').first().text().replace(/\//g, '');
|
||||||
callback(null, pageTitle);
|
callback(null, pageTitle);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user