From b7f3e475e786682a2fd3daf0ad9e0dfb1456ddd3 Mon Sep 17 00:00:00 2001 From: Sean Dodd Date: Sat, 21 Jan 2017 10:04:43 -0600 Subject: [PATCH] Change octal constants to hex constants for babel ES2015 compatability --- lib/pnglib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pnglib.js b/lib/pnglib.js index eeac098..0a55917 100644 --- a/lib/pnglib.js +++ b/lib/pnglib.js @@ -201,7 +201,7 @@ module.exports = function(width,height,depth) { crc32(this.buffer, this.iend_offs, this.iend_size); // convert PNG to string - return "\211PNG\r\n\032\n"+this.buffer.join(''); + return "\x89PNG\r\n\x1A\n"+this.buffer.join(''); } };