[MainWindow] Wrap themesync in try catch

This commit is contained in:
Ducko 2022-01-15 20:41:01 +00:00
parent 32a7035288
commit 8aee54ba7a

View file

@ -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 = `