2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2025-01-05 15:12:11 +00:00

Bump default Electron to 8.2.0 and Prettier

This commit is contained in:
Ronan Jouchet 2020-03-24 20:27:25 -04:00
parent 91426d2e3e
commit 0c2510f31e
3 changed files with 4 additions and 6 deletions

View File

@ -81,7 +81,7 @@
"eslint-config-prettier": "6.x", "eslint-config-prettier": "6.x",
"eslint-plugin-prettier": "3.x", "eslint-plugin-prettier": "3.x",
"jest": "25.x", "jest": "25.x",
"prettier": "1.x", "prettier": "2.x",
"rimraf": "3.x", "rimraf": "3.x",
"ts-loader": "6.x", "ts-loader": "6.x",
"typescript": "3.x", "typescript": "3.x",

View File

@ -3,8 +3,8 @@ import * as path from 'path';
export const DEFAULT_APP_NAME = 'APP'; export const DEFAULT_APP_NAME = 'APP';
// Update both together // Update both together
export const DEFAULT_ELECTRON_VERSION = '8.1.1'; export const DEFAULT_ELECTRON_VERSION = '8.2.0';
export const DEFAULT_CHROME_VERSION = '80.0.3987.141'; export const DEFAULT_CHROME_VERSION = '80.0.3987.158';
export const ELECTRON_MAJOR_VERSION = parseInt( export const ELECTRON_MAJOR_VERSION = parseInt(
DEFAULT_ELECTRON_VERSION.split('.')[0], DEFAULT_ELECTRON_VERSION.split('.')[0],

View File

@ -14,9 +14,7 @@ export async function inferTitle(url: string): Promise<string> {
}); });
log.debug(`Fetched ${(data.length / 1024).toFixed(1)} kb page at`, url); log.debug(`Fetched ${(data.length / 1024).toFixed(1)} kb page at`, url);
const $ = cheerio.load(data); const $ = cheerio.load(data);
const inferredTitle = $('title') const inferredTitle = $('title').first().text();
.first()
.text();
log.debug('Inferred title:', inferredTitle); log.debug('Inferred title:', inferredTitle);
return inferredTitle; return inferredTitle;