Files
2026-06-24 13:07:52 +02:00

12 lines
471 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
! /startup/screen/preload.js Splash-Screen-IPC-Bridge
? This small module creates a secure bridge between the Electron backend and the splash screen frontend
*/
// % load electron dependencies
const { contextBridge, ipcRenderer } = require('electron');
// $ listener for splash screen updates from main process
contextBridge.exposeInMainWorld('splashAPI', {
onUpdate: (callback) => ipcRenderer.on('update-splash', (event, data) => callback(data))
});