Fixing wrong url + focus call
This commit is contained in:
parent
ed44543150
commit
dee3b934c6
File diff suppressed because one or more lines are too long
|
@ -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",
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue