chore: refactor browser IPC into TS and app API into TS (#16921)
* chore: refactor browser IPC into typescript * chore: refactor app.ts into Typescript * Refactors app.dock into cpp * Removes app.launcher which has not existed for 3 years * Removes 2 deprecated APIs (that have been deprecated for more than one major) * Refactors deprecate.ts as well
This commit is contained in:
parent
4ccd6d5900
commit
5790869a3f
16 changed files with 258 additions and 201 deletions
8
lib/browser/ipc-main-internal.ts
Normal file
8
lib/browser/ipc-main-internal.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import { EventEmitter } from 'events'
|
||||
|
||||
const emitter = new EventEmitter()
|
||||
|
||||
// Do not throw exception when channel name is "error".
|
||||
emitter.on('error', () => {})
|
||||
|
||||
export const ipcMainInternal = emitter
|
Loading…
Add table
Add a link
Reference in a new issue