mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
6 lines
No EOL
320 B
TypeScript
6 lines
No EOL
320 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
|
|
}); |