1
0
mirror of https://github.com/jiahaog/Nativefier synced 2024-06-21 07:06:35 +02: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);
return $('title')
.first()
.text()
.replace(/\//g, '');
.text();
});
}