From 138c05f9954e566d74a022f0593ff880842a6bae Mon Sep 17 00:00:00 2001 From: MasterAcnolo <68693319+MasterAcnolo@users.noreply.github.com> Date: Sun, 9 Nov 2025 15:16:59 +0100 Subject: [PATCH] Removed Licence Preload --- preload.js | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/preload.js b/preload.js index 6a2f152..27bfdac 100644 --- a/preload.js +++ b/preload.js @@ -1,30 +1,5 @@ -/* - This file is part of Freedom Loader. - - Copyright (C) 2025 MasterAcnolo - - Freedom Loader is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License. - - Freedom Loader is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - See the GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . -*/ - const { contextBridge, ipcRenderer } = require("electron"); -/* - Expose dans le contexte global (window.electronAPI) deux méthodes sécurisées - pour que le renderer puisse interagir avec le main process via IPC. - - - getDefaultDownloadPath : récupère le chemin de téléchargement par défaut. - - selectDownloadFolder : ouvre la boîte de dialogue pour choisir un dossier. -*/ contextBridge.exposeInMainWorld("electronAPI", { getDefaultDownloadPath: () => ipcRenderer.invoke("get-default-download-path"), selectDownloadFolder: () => ipcRenderer.invoke("select-download-folder"),