[MainWindow] Wrap themesync in try catch

main
Oj 2 years ago
parent 32a7035288
commit 8aee54ba7a

@ -16,7 +16,12 @@ const themesync = async () => {
if (value !== pastValue) DiscordNative.userDataCache.cacheUserData(JSON.stringify(cached));
};
setInterval(themesync, 3000);
setInterval(() => {
try {
themesync();
} catch (e) { }
}, 5000);
const css = `

Loading…
Cancel
Save