'use strict'; const { contextBridge, ipcRenderer } = require('electron'); contextBridge.exposeInMainWorld('cloudlink', { getServerUrl: () => ipcRenderer.invoke('get-server-url'), setServerUrl: (url) => ipcRenderer.invoke('set-server-url', url), showNotification: (title, body) => ipcRenderer.invoke('show-notification', { title, body }), // Platform detection for the web app platform: process.platform, isDesktop: true, });