mirror of
https://github.com/overte-org/overte.git
synced 2025-08-13 23:52:31 +02:00
Add link to server settings
This commit is contained in:
parent
1a55cad1b0
commit
5a7a35893f
2 changed files with 8 additions and 0 deletions
|
@ -24,6 +24,7 @@
|
|||
<span class="status">unknown</span>
|
||||
<button class="power-on">Turn On</button>
|
||||
<button class="power-off">Turn Off</button>
|
||||
<a href="http://localhost:40100/" target="_blank">Settings</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ var app = electron.app; // Module to control application life.
|
|||
var BrowserWindow = require('browser-window'); // Module to create native browser window.
|
||||
var Menu = require('menu');
|
||||
var Tray = require('tray');
|
||||
var shell = require('shell').
|
||||
|
||||
var hfprocess = require('./modules/hf-process.js');
|
||||
var Process = hfprocess.Process;
|
||||
|
@ -61,6 +62,12 @@ app.on('ready', function() {
|
|||
mainWindow = null;
|
||||
});
|
||||
|
||||
// When a link is clicked that has `_target="_blank"`, open it in the user's native browser
|
||||
mainWindow.webContents.on('new-window', function(e, url) {
|
||||
e.preventDefault();
|
||||
shell.openExternal(url);
|
||||
});
|
||||
|
||||
var pInterface = new Process('interface', 'C:\\Interface\\interface.exe');
|
||||
|
||||
var domainServerPath = 'C:\\Users\\Ryan\\AppData\\Local\\High Fidelity\\Stack Manager\\domain-server.exe';
|
||||
|
|
Loading…
Reference in a new issue