Fix 'last location' button not working in console

This commit is contained in:
Ryan Huffman 2015-12-22 16:34:25 -08:00
parent 14e71778a8
commit 980e6d4c52

View file

@ -157,8 +157,8 @@ app.on('ready', function() {
ipcMain.on('start-interface', function(event, arg) {
// check if we have a url parameter to include
var argArray = [];
if (arg.url) {
argArray = ["--url", arg.url]
if (arg && arg.url) {
argArray = ["--url", arg.url];
}
// create a new Interface instance - Interface makes sure only one is running at a time