2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-11-11 15:51:06 +00:00

Remove workaround for slashes in page title

This was reported in #22 and has been fixed upstream in electron-userland/electron-packager#308
This commit is contained in:
Goh Jia Hao 2018-06-10 10:51:09 -07:00
parent 49272d1a89
commit bd89f90a3d

View File

@ -18,8 +18,7 @@ function inferTitle(url) {
const $ = cheerio.load(data); const $ = cheerio.load(data);
return $('title') return $('title')
.first() .first()
.text() .text();
.replace(/\//g, '');
}); });
} }