File tree 1 file changed +1
-3
lines changed
src/app/core/services/electron
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
2
2
3
3
// If you import a module but never use any of the imported values other than as TypeScript types,
4
4
// the resulting javascript file will look as if you never imported the module at all.
5
- import { ipcRenderer , webFrame , remote } from 'electron' ;
5
+ import { ipcRenderer , webFrame } from 'electron' ;
6
6
import * as childProcess from 'child_process' ;
7
7
import * as fs from 'fs' ;
8
8
@@ -12,7 +12,6 @@ import * as fs from 'fs';
12
12
export class ElectronService {
13
13
ipcRenderer : typeof ipcRenderer ;
14
14
webFrame : typeof webFrame ;
15
- remote : typeof remote ;
16
15
childProcess : typeof childProcess ;
17
16
fs : typeof fs ;
18
17
@@ -25,7 +24,6 @@ export class ElectronService {
25
24
if ( this . isElectron ) {
26
25
this . ipcRenderer = window . require ( 'electron' ) . ipcRenderer ;
27
26
this . webFrame = window . require ( 'electron' ) . webFrame ;
28
- this . remote = window . require ( 'electron' ) . remote ;
29
27
30
28
this . childProcess = window . require ( 'child_process' ) ;
31
29
this . fs = window . require ( 'fs' ) ;
You can’t perform that action at this time.
0 commit comments