Fixed DiscordRPC crashing the app on startup if you didn't have discord open.
This commit is contained in:
@@ -55,6 +55,10 @@ function initDiscordRPC() {
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
rpcClient.on('error', (err) => {
|
||||
console.log('[Discord RPC] Background warning:', err.message);
|
||||
});
|
||||
|
||||
rpcClient.on('disconnected', () => {
|
||||
if (!app.isPackaged) {
|
||||
console.log('Discord RPC: Disconnected. Attempting to reconnect in 10s...');
|
||||
@@ -69,6 +73,7 @@ function initDiscordRPC() {
|
||||
try {
|
||||
rpcClient.connect().catch(err => {
|
||||
console.error('Discord RPC: Connection failed', err.message);
|
||||
return;
|
||||
});
|
||||
} catch (err) {
|
||||
console.error('Discord RPC: Error initializing', err);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const GITHUB_OWNER = 'ItsSkaiya';
|
||||
const GITHUB_REPO = 'WaifuBoard';
|
||||
const CURRENT_VERSION = 'v1.6.0';
|
||||
const CURRENT_VERSION = 'v1.6.1';
|
||||
const UPDATE_CHECK_INTERVAL = 5 * 60 * 1000;
|
||||
|
||||
let currentVersionDisplay;
|
||||
|
||||
Reference in New Issue
Block a user