mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
fix first instance not showing when opening 2nd (#296)
Co-authored-by: octopushugger <octopushugger@github.com>
This commit is contained in:
parent
e7814c1522
commit
5bcbbacee1
2 changed files with 2 additions and 1 deletions
|
@ -6,7 +6,7 @@ const unstrictCSP = () => {
|
|||
|
||||
electron.session.defaultSession.webRequest.onHeadersReceived(({responseHeaders}, done) => {
|
||||
delete responseHeaders!["content-security-policy"];
|
||||
done({ responseHeaders });
|
||||
done({responseHeaders});
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
@ -83,6 +83,7 @@ async function doAfterDefiningTheWindow() {
|
|||
// Someone tried to run a second instance, we should focus our window.
|
||||
if (mainWindow) {
|
||||
if (mainWindow.isMinimized()) mainWindow.restore();
|
||||
mainWindow.show();
|
||||
mainWindow.focus();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue