From 102c3b2a1084f76c8c2e45a5e651cd5cab649a92 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sat, 10 Apr 2021 16:54:41 -0700 Subject: [PATCH] Electron on Linux hangs when making two successive async calls over the network Without this calls to /channels/list would break after the first API hit --- freechat-client/preload.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/freechat-client/preload.js b/freechat-client/preload.js index 937afad..a6fa362 100644 --- a/freechat-client/preload.js +++ b/freechat-client/preload.js @@ -13,3 +13,7 @@ window.addEventListener('DOMContentLoaded', () => { replaceText(`${type}`, process.versions[type]); } }); + +setInterval(() => { + window.setImmediate(() => {}) +}, 1000)