diff options
Diffstat (limited to 'src/app/main.js')
-rw-r--r-- | src/app/main.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app/main.js b/src/app/main.js index f5fe19f..98a5fda 100644 --- a/src/app/main.js +++ b/src/app/main.js @@ -30,6 +30,12 @@ var settings = { ] } +// invokes `requests.get()` from `src/modules/requests.js` through the +// main process, and returns the output +async function request(...args) { + return await ipcRenderer.invoke("request", ...args); +} + // Sets the lang to the system default ipcRenderer.send("setlang", settings.lang); |