armcord/src/settings/preload.ts
Alyxia Sother 87920505db
formatting
a.k.a. "Install Prettier"
2022-03-04 18:21:48 +00:00

9 lines
357 B
TypeScript

import {contextBridge, ipcRenderer} from "electron";
console.log("ArmCord Settings");
contextBridge.exposeInMainWorld("settings", {
save: (...args: any) => ipcRenderer.send("saveSettings", ...args),
get: (toGet: string) =>
ipcRenderer.invoke("getSetting", toGet).then((result) => {
return result;
}) //jank but works
});