Skip to content

Commit

Permalink
Ignore branched code aimed at different node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Parisot committed Mar 13, 2018
1 parent 94803bd commit 64b0198
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/crx.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ ChromeExtension.prototype = {
keyOrPath = keyOrPath[0].toUpperCase() + keyOrPath.slice(1);

// TODO move to Buffer.from when drop old Node versions in crx@4
/* istanbul ignore next */
keyOrPath = ('from' in Buffer)
? Buffer.from(keyOrPath, "utf-16le")
: new Buffer(keyOrPath, "utf-16le");
Expand Down

0 comments on commit 64b0198

Please sign in to comment.