diff --git a/lib/hash.js b/lib/hash.js index bc7362f..d185a9a 100644 --- a/lib/hash.js +++ b/lib/hash.js @@ -88,7 +88,7 @@ // create byte array with length dividable by 64 (512 bit) var neededLength = Math.ceil((length + 1 + 8) / 64) * 64; var messageByteArray = new Uint8Array(neededLength); - messageByteArray.set(inputByteArray); + messageByteArray.set(new Uint8Array(inputByteArray.buffer)); var view = new DataView(messageByteArray.buffer); // append 10...000000 @@ -172,7 +172,7 @@ // create byte array with length dividable by 64 (512 bit) var neededLength = Math.ceil((length + 1 + 8) / 64) * 64; var messageByteArray = new Uint8Array(neededLength); - messageByteArray.set(inputByteArray); + messageByteArray.set(new Uint8Array(inputByteArray.buffer)); var view = new DataView(messageByteArray.buffer); // append 10...000000 diff --git a/releaseNotes.txt b/releaseNotes.txt index d3e54b2..8f76f5e 100644 --- a/releaseNotes.txt +++ b/releaseNotes.txt @@ -7,6 +7,7 @@ Version 0.5.8: fixes: - after reset the hidden settings and expanded views were not reset + - audio cache did not work properly known issues: - if a data URL is blocked the page action button does not appear