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