Fixing wrong url + focus call

This commit is contained in:
Jean Ouina 2020-07-05 16:02:49 +02:00
parent ed44543150
commit dee3b934c6
3 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -141,7 +141,7 @@ class LightcordError extends Error {
}
export const Constants = {
SERVER_URL: "https://lightcord.deroku.xyz/",
SERVER_URL: "https://lightcord.deroku.xyz",
badges: [ // TODO:
/*{
name: "Lightcord User",

View File

@ -169,7 +169,6 @@ function setWindowVisible(isVisible, andUnminimize) {
if (isVisible) {
if (andUnminimize || !mainWindow.isMinimized()) {
mainWindow.show();
mainWindow.focus();
webContentsSend('MAIN_WINDOW_FOCUS');
}
} else {
@ -706,6 +705,7 @@ function handleSingleInstance(args) {
webContentsSend('MAIN_WINDOW_PATH', appPath);
}
setWindowVisible(true, false);
console.log("Focusing from singleInstance", args)
mainWindow.focus();
}
}