mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
feat(discord): remove hacky solution for calling callbacks
This commit is contained in:
@ -39,12 +39,9 @@ const resetInfo = () => {
|
||||
console.log('discord disconnected');
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
for (const cb of refreshCallbacks) {
|
||||
cb();
|
||||
}
|
||||
}, 100);
|
||||
|
||||
for (const cb of refreshCallbacks) {
|
||||
cb();
|
||||
}
|
||||
};
|
||||
|
||||
const connectTimeout = () => new Promise((resolve, reject) => setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user