fix interface launching via start-interface command

This commit is contained in:
Stephen Birarda 2015-12-22 14:54:15 -07:00
parent 1229ed9a7f
commit e7f943db2c
2 changed files with 6 additions and 5 deletions

View file

@ -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' });

View file

@ -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();
});