updated electron@0.35 : replaced deprecated API calls
This commit is contained in:
parent
14db35a213
commit
c9fa8b97f5
3 changed files with 8 additions and 8 deletions
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
ipc.on('receiveOsc',function(data){
|
||||
ipc.on('receiveOsc',function(event,data){
|
||||
// fetch id
|
||||
var path = data.path
|
||||
var id = __widgetsIds__[path]
|
||||
|
|
@ -13,12 +13,12 @@ ipc.on('receiveOsc',function(data){
|
|||
|
||||
})
|
||||
|
||||
ipc.on('stateLoad',function(preset){
|
||||
ipc.on('stateLoad',function(event,preset){
|
||||
stateSet(preset,true)
|
||||
stateQuickSave(preset)
|
||||
})
|
||||
|
||||
ipc.on('sessionList',function(data){
|
||||
ipc.on('sessionList',function(event,data){
|
||||
$('#lobby').append('\
|
||||
<div class="main">\
|
||||
<div class="header">\
|
||||
|
|
@ -54,7 +54,7 @@ ipc.on('sessionList',function(data){
|
|||
})
|
||||
})
|
||||
|
||||
ipc.on('sessionOpen',function(data){
|
||||
ipc.on('sessionOpen',function(event,data){
|
||||
var session = JSON.parse(data)
|
||||
|
||||
$('#lobby').remove()
|
||||
|
|
@ -65,6 +65,6 @@ ipc.on('sessionOpen',function(data){
|
|||
|
||||
})
|
||||
|
||||
ipc.on('error',function(data){
|
||||
ipc.on('error',function(event,data){
|
||||
createPopup(icon('warning')+' '+data.title,data.text)
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
webFrame = require('web-frame')
|
||||
|
||||
// mainProcess & renderProcess communication engine
|
||||
ipc = require('ipc')
|
||||
ipc = require('ipc-renderer')
|
||||
|
||||
// jquery
|
||||
window.$ = window.jQuery = require('./jquery/jquery.min.js')
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ var app = require('app')
|
|||
, osc = require('node-osc')
|
||||
, fs = require('fs')
|
||||
, vm = require('vm')
|
||||
, ipc = require('ipc')
|
||||
, ipc = require('ipc-main')
|
||||
|
||||
, window = null
|
||||
|
||||
|
|
@ -102,7 +102,7 @@ if (!settings.noGui) {
|
|||
'background-color':'#1a1d22'
|
||||
})
|
||||
|
||||
window.loadUrl('file://' + __dirname + '/../browser/index.html')
|
||||
window.loadURL('file://' + __dirname + '/../browser/index.html')
|
||||
|
||||
window.on('closed', function() {
|
||||
window = null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue