0👍
✅
Nevermind. Fixed this by using the built-in Quasar functoin copyToClipboard() instead.
import { copyToClipboard } from 'quasar'
Thanks
0👍
According to the documentation, the window must be in non-sandboxed
mode if you want to use clipboard
in the Renderer process.
So you need to set the sandbox option to false
.
app.whenReady().then(() => {
const win = new BrowserWindow({
webPreferences: {
sandbox: false
}
})
win.loadURL('https://google.com')
})
See also:
Electron Sandbox Tutorial
Source:stackexchange.com