This commit is contained in:
Kevin Sawicki 2016-02-09 10:03:49 -08:00
parent fd30ed0edd
commit 55d4db1387

View file

@ -76,8 +76,8 @@ let wrapWebContents = function(webContents) {
// WebContents::send(channel, args..) // WebContents::send(channel, args..)
webContents.send = function() { webContents.send = function() {
var args, channel; var args = 2 <= arguments.length ? slice.call(arguments, 1) : [];
channel = arguments[0], args = 2 <= arguments.length ? slice.call(arguments, 1) : []; var channel = arguments[0];
return this._send(channel, slice.call(args)); return this._send(channel, slice.call(args));
}; };