From e2f7f4dcae62268af24f8c20683f077b4a12c791 Mon Sep 17 00:00:00 2001 From: Walle Cyril Date: Tue, 5 Nov 2019 21:29:58 +0100 Subject: [PATCH] simplify --- package.json | 2 +- typeCast.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 27c6d7d..a86bc20 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "utilsac", - "version": "12.2.0", + "version": "12.2.1", "description": "Utility functions", "type": "module", "main": "utility.js", diff --git a/typeCast.js b/typeCast.js index ff45887..5555b80 100644 --- a/typeCast.js +++ b/typeCast.js @@ -9,7 +9,7 @@ export { const stringFromArrayBuffer = function (arrayBuffer, encoding = `utf-8`) { - return (new TextDecoder(encoding)).decode(new DataView(arrayBuffer)); + return (new TextDecoder(encoding)).decode(arrayBuffer); }; const xFromBlob = function (readAs) {