Add warning on game close if user launched browser

This commit is contained in:
Martin Fournier
2021-12-31 04:22:04 -05:00
parent bf1a2b56ba
commit b402cc7f6e
2 changed files with 15 additions and 1 deletions

View File

@@ -32,6 +32,8 @@ async function createWindow(killall) {
// and open every other protocols on the browser
e.preventDefault();
shell.openExternal(url);
global.app_playerOpenedExternalLink = true;
});
window.webContents.backgroundThrottling = false;