silverwolf-x's picture
download
raw
825 Bytes
/* eslint-disable @typescript-eslint/no-namespace */
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { contextBridge, ipcRenderer } from "electron";
import { IpcRendererEvent } from "electron/main";
// We are using the context bridge to securely expose NodeAPIs.
// Please note that many Node APIs grant access to local system resources.
// Be very cautious about which globals and APIs you expose to untrusted remote content.
contextBridge.exposeInMainWorld("electron", {
sayHello: () => ipcRenderer.send("message", "hi from next"),
receiveHello: (handler: (event: IpcRendererEvent, ...args: any[]) => void) =>
ipcRenderer.on("message", handler),
stopReceivingHello: (
handler: (event: IpcRendererEvent, ...args: any[]) => void,
) => ipcRenderer.removeListener("message", handler),
});

Xet Storage Details

Size:
825 Bytes
·
Xet hash:
64b304fa74962824785d610c8f8d9947941e020f8a93e78133266f4e0792c69c

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