mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-01-03 14:17:29 +00:00
Bump default Electron to 8.2.0 and Prettier
This commit is contained in:
parent
91426d2e3e
commit
0c2510f31e
@ -81,7 +81,7 @@
|
||||
"eslint-config-prettier": "6.x",
|
||||
"eslint-plugin-prettier": "3.x",
|
||||
"jest": "25.x",
|
||||
"prettier": "1.x",
|
||||
"prettier": "2.x",
|
||||
"rimraf": "3.x",
|
||||
"ts-loader": "6.x",
|
||||
"typescript": "3.x",
|
||||
|
@ -3,8 +3,8 @@ import * as path from 'path';
|
||||
export const DEFAULT_APP_NAME = 'APP';
|
||||
|
||||
// Update both together
|
||||
export const DEFAULT_ELECTRON_VERSION = '8.1.1';
|
||||
export const DEFAULT_CHROME_VERSION = '80.0.3987.141';
|
||||
export const DEFAULT_ELECTRON_VERSION = '8.2.0';
|
||||
export const DEFAULT_CHROME_VERSION = '80.0.3987.158';
|
||||
|
||||
export const ELECTRON_MAJOR_VERSION = parseInt(
|
||||
DEFAULT_ELECTRON_VERSION.split('.')[0],
|
||||
|
@ -14,9 +14,7 @@ export async function inferTitle(url: string): Promise<string> {
|
||||
});
|
||||
log.debug(`Fetched ${(data.length / 1024).toFixed(1)} kb page at`, url);
|
||||
const $ = cheerio.load(data);
|
||||
const inferredTitle = $('title')
|
||||
.first()
|
||||
.text();
|
||||
const inferredTitle = $('title').first().text();
|
||||
|
||||
log.debug('Inferred title:', inferredTitle);
|
||||
return inferredTitle;
|
||||
|
Loading…
Reference in New Issue
Block a user