2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-09-22 09:39:02 +00:00

Merge pull request #24 from himynameisdave/master

Fixes the issue with "/"'s in the page title
This commit is contained in:
Jia Hao 2016-01-21 08:17:33 +07:00
commit 673851202f

View File

@ -103,7 +103,7 @@ function getTitle(url, callback) {
} }
const $ = cheerio.load(body); const $ = cheerio.load(body);
const pageTitle = $("title").text(); const pageTitle = $("title").text().replace(/\//g, "");
callback(null, pageTitle); callback(null, pageTitle);
}); });
} }