Skip to content

Quasar v2 Electron Renderer process Issue #13282

Discussion options

You must be logged in to vote

https://quasar.dev/quasar-cli-webpack/developing-electron-apps/electron-preload-script

electron-main.js

ipcMain.handle('foo', (event, args) => {
  console.log(args)
})

electron-preload.js

foo() {
  ipcRenderer.invoke('foo')
},

vue

window.myWindowAPI.foo()

vue -> electron-preload.js -> electron-main.js

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@Flint174
Comment options

@yzqdev
Comment options

@Flint174
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Flint174
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants