Skip to content

Commit

Permalink
version 0.4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
belaviyo committed Jul 11, 2020
1 parent 6cc00df commit bacec8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

exports.id = 'com.add0n.native_client';
exports.version = '0.4.5';
exports.version = '0.4.6';

exports.ids = {
chrome: [
Expand Down Expand Up @@ -34,7 +34,6 @@ exports.ids = {
'dbghnkdojpkebjbddhhjfjgapoolnikh', // Send to MPV (Opera)
'nglfpmpeljnfooojieocihijkeokinno', // Edit with VIM (Chrome)
'ajcbbbkgmbinpbkllamhphpgpgdabnhf', // Edit with VIM (Opera)
'oafkneibbejlfadcdcjglkpdhmjnlfhl', // TEST
],
firefox: [
'{3e0ac434-26e0-4c03-b757-3078486800c3}', // Send to VLC
Expand Down
6 changes: 3 additions & 3 deletions messaging.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function Input() {
this._readableState.objectMode = true;

// Unparsed data.
this.buf = new Buffer(0);
this.buf = Buffer.alloc(0);
// Parsed length.
this.len = null;
}
Expand Down Expand Up @@ -81,8 +81,8 @@ function Output() {
util.inherits(Output, stream.Transform);

Output.prototype._transform = function(chunk, encoding, done) {
const len = new Buffer(4);
const buf = new Buffer(JSON.stringify(chunk));
const len = Buffer.alloc(4);
const buf = Buffer.from(JSON.stringify(chunk), 'utf8');

len.writeUInt32LE(buf.length, 0);

Expand Down

0 comments on commit bacec8c

Please sign in to comment.