Release v0.2.10: Update package-lock.json and CI config

This commit is contained in:
Joan
2025-12-30 18:51:21 +01:00
parent 8b31011334
commit 592f38827e
108 changed files with 2755 additions and 1112 deletions

17
pwa/electron/preload.cjs Normal file
View File

@@ -0,0 +1,17 @@
const { contextBridge, ipcRenderer } = require('electron')
// Expose protected methods that allow the renderer process to use
// ipcRenderer without exposing the entire object
contextBridge.exposeInMainWorld('electronAPI', {
// Get Steam authentication data
getSteamAuth: () => ipcRenderer.invoke('get-steam-auth'),
// Check if Steam is available
isSteamAvailable: () => ipcRenderer.invoke('is-steam-available'),
// Get platform info
getPlatform: () => ipcRenderer.invoke('get-platform'),
// Flag to indicate we're running in Electron
isElectron: true
})