firefox: osc: dont use unsupported ...arguments, use fn.apply instead

This commit is contained in:
jean-emmanuel 2016-12-08 08:39:26 +01:00
parent fdbb8d673b
commit 954367c528

View file

@ -7,11 +7,11 @@ var Ipc = function(){
}
Ipc.prototype.send = function(){
return this.socket.emit(...arguments)
return this.socket.emit.apply(this.socket, arguments)
}
Ipc.prototype.on = function(){
return this.socket.on(...arguments)
return this.socket.on.apply(this.socket, arguments)
}
var ipc = new Ipc()