alliballi/TEXAS / fragle /preload.js
alliballi's picture
download
raw
605 Bytes
// preload.js - Context bridge for Electron
// Safely expose IPC to renderer
const { contextBridge, ipcRenderer } = require('electron');
contextBridge.exposeInMainWorld('electron', {
navigate: (screen) => ipcRenderer.send('navigate', screen),
showAbout: () => ipcRenderer.send('show-about'),
chaosMode: () => ipcRenderer.send('chaos-mode'),
// Listen for navigation
onNavigate: (callback) => {
ipcRenderer.on('navigate', (event, screen) => callback(screen));
},
onChaosMode: (callback) => {
ipcRenderer.on('chaos-mode', (event) => callback());
}
});

Xet Storage Details

Size:
605 Bytes
·
Xet hash:
0f0b2a3645f6c013d55ea39e7d9eb778c470934a72b4ba37c16eb69ac4378edf

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.