Open links in default browser

This commit is contained in:
DeionSi 2023-01-13 22:23:46 +01:00
parent f067f0fef4
commit 3f75e151b3
3 changed files with 10 additions and 2 deletions

View File

@ -183,7 +183,7 @@
<footer id="footer" class="wrapper style1-alt">
<div class="inner">
<ul class="menu">
<li>&copy; Josh Stewart. All rights reserved.</li><li>Design: <a href="http://html5up.net">HTML5 UP</a></li><li>Version: 0.0.3</li>
<li>&copy; Josh Stewart. All rights reserved.</li><li>Design: <a href="http://html5up.net" target="_blank">HTML5 UP</a></li><li>Version: 0.0.3</li>
</ul>
</div>
</footer>

View File

@ -28,6 +28,14 @@ function createWindow ()
},
});
// Open links in external browser
win.webContents.setWindowOpenHandler(({ url }) => {
if (url.startsWith('https:')) {
require('electron').shell.openExternal(url);
}
return { action: 'deny' };
});
// auto hide menu bar (Win, Linux)
win.setMenuBarVisibility(false);
win.setAutoHideMenuBar(true);

View File

@ -1,6 +1,6 @@
{
"name": "speedyloader",
"version": "1.5.0",
"version": "1.5.1",
"description": "Speeduino universal firmware loader",
"main": "main.js",
"scripts": {