ref/ replace electron.remote (deprecated) by @electron/remote
This commit is contained in:
3
main.ts
3
main.ts
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user