feat(desktop): add preload script for quick entry window

This commit is contained in:
kolaente 2026-03-03 00:01:22 +01:00 committed by kolaente
parent 831e4f29d1
commit 20a8ce6858
2 changed files with 10 additions and 0 deletions

View File

@ -19,6 +19,10 @@
},
"build": {
"appId": "io.vikunja.desktop",
"files": [
"**/*",
"preload-quick-entry.js"
],
"productName": "Vikunja Desktop",
"artifactName": "${productName}-${version}.${ext}",
"icon": "build/icon.icns",

View File

@ -0,0 +1,6 @@
// desktop/preload-quick-entry.js
const { contextBridge, ipcRenderer } = require('electron')
contextBridge.exposeInMainWorld('quickEntry', {
close: () => ipcRenderer.send('quick-entry:close'),
})