mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-11-11 07:41:04 +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:
parent
49272d1a89
commit
bd89f90a3d
@ -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, '');
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user