File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2,20 +2,22 @@ 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 } from 'electron' ;
5
+ import { ipcRenderer , webFrame } from 'electron' ;
6
6
import * as childProcess from 'child_process' ;
7
7
8
8
@Injectable ( )
9
9
export class ElectronService {
10
10
11
11
ipcRenderer : typeof ipcRenderer ;
12
12
childProcess : typeof childProcess ;
13
+ webFrame : typeof webFrame ;
13
14
14
15
constructor ( ) {
15
16
// Conditional imports
16
17
if ( this . isElectron ( ) ) {
17
18
this . ipcRenderer = window . require ( 'electron' ) . ipcRenderer ;
18
19
this . childProcess = window . require ( 'child_process' ) ;
20
+ this . webFrame = window . require ( 'electron' ) . webFrame ;
19
21
}
20
22
}
21
23
You can’t perform that action at this time.
0 commit comments