cleanup
This commit is contained in:
parent
04941261b5
commit
b10b910ca0
2 changed files with 2 additions and 8 deletions
|
|
@ -17,9 +17,7 @@ ipc.on('load',function(preset){
|
|||
setState(preset)
|
||||
})
|
||||
|
||||
var listSessions = false
|
||||
ipc.on('listSessions',function(data){
|
||||
if (listSessions) return false
|
||||
$('#lobby').append('\
|
||||
<div class="main">\
|
||||
<div class="header">\
|
||||
|
|
@ -45,18 +43,14 @@ ipc.on('listSessions',function(data){
|
|||
e.stopPropagation()
|
||||
ipc.send('browseSessions')
|
||||
})
|
||||
listSessions = true
|
||||
})
|
||||
|
||||
var openSession = false
|
||||
ipc.on('openSession',function(data){
|
||||
if (openSession) return false
|
||||
var error = data.error,
|
||||
path = data.path,
|
||||
session = JSON.parse(data.session)
|
||||
|
||||
if (!error) {
|
||||
openSession = true
|
||||
ipc.send('addSessionToHistory',path)
|
||||
$('#lobby').hide()
|
||||
$('#container').append('<div id="loading"><div class="spinner"></div></div>')
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
if (process.argv[1]&&process.argv[1].indexOf('-')==0) process.argv.unshift('')
|
||||
|
||||
var app = require('app')
|
||||
, BrowserWindow = require('browser-window')
|
||||
, browserWindow = require('browser-window')
|
||||
, dialog = require('dialog')
|
||||
, osc = require('node-osc')
|
||||
, fs = require('fs')
|
||||
|
|
@ -94,7 +94,7 @@ if (!settings.noGui) {
|
|||
|
||||
app.on('ready', function() {
|
||||
|
||||
window = new BrowserWindow({
|
||||
window = new browserWindow({
|
||||
width: 800,
|
||||
height: 600,
|
||||
title:settings.read('appName'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue