Open links in default browser
This commit is contained in:
parent
f067f0fef4
commit
3f75e151b3
|
@ -183,7 +183,7 @@
|
|||
<footer id="footer" class="wrapper style1-alt">
|
||||
<div class="inner">
|
||||
<ul class="menu">
|
||||
<li>© Josh Stewart. All rights reserved.</li><li>Design: <a href="http://html5up.net">HTML5 UP</a></li><li>Version: 0.0.3</li>
|
||||
<li>© 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>
|
||||
|
|
8
main.js
8
main.js
|
@ -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);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "speedyloader",
|
||||
"version": "1.5.0",
|
||||
"version": "1.5.1",
|
||||
"description": "Speeduino universal firmware loader",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
|
Loading…
Reference in New Issue