mirror of
https://github.com/overte-org/overte.git
synced 2025-04-17 23:09:11 +02:00
fix interface launching via start-interface command
This commit is contained in:
parent
1229ed9a7f
commit
e7f943db2c
2 changed files with 6 additions and 5 deletions
|
@ -72,7 +72,7 @@ $(function() {
|
|||
}
|
||||
|
||||
$('#last-visited-link').click(function() {
|
||||
ipcRenderer.send('start-interface');
|
||||
ipcRenderer.send('start-interface', { url: 'hifi://testing-url' });
|
||||
});
|
||||
$('#manage-server #restart').click(function() {
|
||||
ipcRenderer.send('restart-server', { name: 'home' });
|
||||
|
|
|
@ -156,12 +156,13 @@ app.on('ready', function() {
|
|||
|
||||
ipcMain.on('start-interface', function(event, arg) {
|
||||
// create a new Interface instance - Interface makes sure only one is running at a time
|
||||
var args = [];
|
||||
if (args.url) {
|
||||
args << "--url" << args.url
|
||||
var argArray = [];
|
||||
if (arg.url) {
|
||||
argArray = ["--url", arg.url]
|
||||
console.log(argArray);
|
||||
}
|
||||
|
||||
var pInterface = new Process('interface', interfacePath);
|
||||
var pInterface = new Process('interface', interfacePath, argArray);
|
||||
pInterface.start();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue