Closed jetacpp closed 2 years ago
Hi @jetacpp! 👋
It looks like you provided an invalid or unsupported reproduction URL. Do not use any service other than Codepen, jsFiddle, StackBlitz, Codesandbox, and GitHub. Make sure the URL you provided is correct and reachable. You can test it by visiting it in a private tab, another device, etc. Please edit your original post above and provide a valid reproduction URL as explained.
Without a proper reproduction, your issue will have to get closed.
Thank you for your collaboration. 👏
Hi,
This has nothing to do with Quasar. You should check the Electron documentation on how to open a new window and have the preload script run/available. Closing this as its a ticket instead of a forum post.
What happened?
When building a Quasar app with electron, electron preload.js is launched for the main window. This is where I expose electron APIs such as IPCRenderer modules to renderer thread. Eg,
window.ipcRenderer = require('electron').ipcRenderer
When I open a new window, preload script is not launched for this window. ` <q-btn flat round dense icon="more_vert" :to="{ name: 'external'}" target="_blank"
What did you expect to happen?
Electron preload.js is run with every window opened.
Reproduction URL
.
How to reproduce?
Flavour
Quasar CLI with Webpack (@quasar/cli | @quasar/app-webpack)
Areas
Electron Mode
Platforms/Browsers
Chrome
Quasar info output
Relevant log output
No response
Additional context
No response