From a8628fc3dd75ad6355c3295edf161eb3e3d48179 Mon Sep 17 00:00:00 2001 From: Maxime GRIS Date: Sat, 20 Jun 2020 17:06:24 +0200 Subject: [PATCH] ref/ electron remote deprecated --- src/app/core/services/electron/electron.service.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/core/services/electron/electron.service.ts b/src/app/core/services/electron/electron.service.ts index 9017c8a..35489f0 100644 --- a/src/app/core/services/electron/electron.service.ts +++ b/src/app/core/services/electron/electron.service.ts @@ -2,7 +2,7 @@ import { Injectable } from '@angular/core'; // If you import a module but never use any of the imported values other than as TypeScript types, // the resulting javascript file will look as if you never imported the module at all. -import { ipcRenderer, webFrame, remote } from 'electron'; +import { ipcRenderer, webFrame } from 'electron'; import * as childProcess from 'child_process'; import * as fs from 'fs'; @@ -12,7 +12,6 @@ import * as fs from 'fs'; export class ElectronService { ipcRenderer: typeof ipcRenderer; webFrame: typeof webFrame; - remote: typeof remote; childProcess: typeof childProcess; fs: typeof fs; @@ -25,7 +24,6 @@ export class ElectronService { if (this.isElectron) { this.ipcRenderer = window.require('electron').ipcRenderer; this.webFrame = window.require('electron').webFrame; - this.remote = window.require('electron').remote; this.childProcess = window.require('child_process'); this.fs = window.require('fs');