Skip to content

Commit

Permalink
Add support for Electron 29
Browse files Browse the repository at this point in the history
  • Loading branch information
GytisCepk committed Feb 22, 2024
1 parent 176a84b commit d44ca0f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
4 changes: 2 additions & 2 deletions packages/electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"chai-as-promised": "^7.1.1",
"cpx2": "^5.0.0",
"dotenv": "~16.0.3",
"electron": "^28.0.0",
"electron": "^29.0.0",
"eslint": "^7.32.0",
"mocha": "^8.2.3",
"nyc": "^15.1.0",
Expand All @@ -74,7 +74,7 @@
},
"peerDependencies": {
"@itwin/core-bentley": "^3.3.0 || ^4.0.0",
"electron": ">=23.0.0 <29.0.0"
"electron": ">=23.0.0 <30.0.0"
},
"eslintConfig": {
"plugins": [
Expand Down
6 changes: 3 additions & 3 deletions packages/electron/src/renderer/ElectronPreload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ const frontendApi: ITwinElectronApi = {
},
addListener(channel: string, listener: ElectronListener) {
checkPrefix(channel);
return ipcRenderer.addListener(channel, listener);
ipcRenderer.addListener(channel, listener);
},
removeListener(channel: string, listener: ElectronListener) {
return ipcRenderer.removeListener(channel, listener);
ipcRenderer.removeListener(channel, listener);
},
once(channel: string, listener: ElectronListener) {
checkPrefix(channel);
return ipcRenderer.once(channel, listener);
ipcRenderer.once(channel, listener);
},
async invoke(channel: string, ...data: any[]): Promise<any> {
checkPrefix(channel);
Expand Down
33 changes: 19 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d44ca0f

Please sign in to comment.