|
@ -34,7 +34,7 @@ var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; |
|
|
var i, j, l, tmp, placeHolders, arr; |
|
|
var i, j, l, tmp, placeHolders, arr; |
|
|
|
|
|
|
|
|
if (b64.length % 4 > 0) { |
|
|
if (b64.length % 4 > 0) { |
|
|
throw 'Invalid string. Length must be a multiple of 4'; |
|
|
throw new Error('Invalid string. Length must be a multiple of 4') |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// the number of equal signs (place holders)
|
|
|
// the number of equal signs (place holders)
|
|
|