Skip to content

Commit a8628fc

Browse files
author
Maxime GRIS
committed
ref/ electron remote deprecated
1 parent ddd92b3 commit a8628fc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: src/app/core/services/electron/electron.service.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
22

33
// If you import a module but never use any of the imported values other than as TypeScript types,
44
// 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';
66
import * as childProcess from 'child_process';
77
import * as fs from 'fs';
88

@@ -12,7 +12,6 @@ import * as fs from 'fs';
1212
export class ElectronService {
1313
ipcRenderer: typeof ipcRenderer;
1414
webFrame: typeof webFrame;
15-
remote: typeof remote;
1615
childProcess: typeof childProcess;
1716
fs: typeof fs;
1817

@@ -25,7 +24,6 @@ export class ElectronService {
2524
if (this.isElectron) {
2625
this.ipcRenderer = window.require('electron').ipcRenderer;
2726
this.webFrame = window.require('electron').webFrame;
28-
this.remote = window.require('electron').remote;
2927

3028
this.childProcess = window.require('child_process');
3129
this.fs = window.require('fs');

0 commit comments

Comments
 (0)