mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Update Base64Decode.js
The array length should be 1/4 the size of the raw binary string, otherwise you end up with a bunch of undefined array values at the end.
This commit is contained in:
parent
be4303e6e6
commit
c0ce45cfa3
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ var Base64Decode = function (data)
|
|||
{
|
||||
var binaryString = window.atob(data);
|
||||
var len = binaryString.length;
|
||||
var bytes = new Array(len);
|
||||
var bytes = new Array(len / 4);
|
||||
|
||||
// Interpret binaryString as an array of bytes representing little-endian encoded uint32 values.
|
||||
for (var i = 0; i < len; i += 4)
|
||||
|
|
Loading…
Add table
Reference in a new issue