mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
87920505db
a.k.a. "Install Prettier"
9 lines
357 B
TypeScript
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
|
|
});
|