[MainWindow] Wrap themesync in try catch
This commit is contained in:
parent
32a7035288
commit
8aee54ba7a
1 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue