Created a preload.js, small changes in the package.json, main.js, index.html and script.js like removing whitespace

This commit is contained in:
2025-11-04 17:18:45 +01:00
parent 38d0934232
commit 4686d17ad9
6 changed files with 18 additions and 9 deletions
+4
View File
@@ -0,0 +1,4 @@
const { contextBridge, ipcRenderer } = require('electron');
contextBridge.exposeInMainWorld('electronAPI', {
sendDropPath: (path) => ipcRenderer.send('file-dropped', path)
});