Removing myself from callback hell slowly but surely

 Removing ipc calls reducing chance to shrek the drive
This commit is contained in:
shockrah
2021-03-08 19:53:14 -08:00
parent ef0bc70f90
commit d8244388c2
3 changed files with 40 additions and 38 deletions

View File

@@ -129,10 +129,9 @@
$('#add-admin-json').click(async () => await add_server_to_config() )
try {
let config = await ipcRenderer.invoke('config-request')
await auth.init(config)
let config = await auth.init()
for(const server_cfg of config['servers']) {
for(const server_cfg of config.data['servers']) {
const remote = server_cfg['server']
const user = server_cfg['user']