ref/ replace electron.remote (deprecated) by @electron/remote

This commit is contained in:
Maxime GRIS
2021-03-19 19:33:02 +01:00
parent a26d5f1321
commit 8a4b6246e1
4 changed files with 17 additions and 9 deletions

View File

@@ -2,6 +2,9 @@ import { app, BrowserWindow, screen } from 'electron';
import * as path from 'path';
import * as url from 'url';
// Initialize remote module
require('@electron/remote/main').initialize();
let win: BrowserWindow = null;
const args = process.argv.slice(1),
serve = args.some(val => val === '--serve');