function.js: Fix global variable B64keyStr declaration

This commit is contained in:
Benjamin Renard 2020-05-29 18:28:15 +02:00
parent 0469d0723f
commit 78fefb6c8f

View file

@ -290,11 +290,11 @@ function generate_uuid() {
* Source : http://ntt.cc/2008/01/19/base64-encoder-decoder-with-javascript.html * Source : http://ntt.cc/2008/01/19/base64-encoder-decoder-with-javascript.html
*/ */
if ($type(atob) != 'function') { if ($type(atob) != 'function') {
B64keyStr = "ABCDEFGHIJKLMNOP" + var B64keyStr = "ABCDEFGHIJKLMNOP" +
"QRSTUVWXYZabcdef" + "QRSTUVWXYZabcdef" +
"ghijklmnopqrstuv" + "ghijklmnopqrstuv" +
"wxyz0123456789+/" + "wxyz0123456789+/" +
"="; "=";
function btoa(input) { function btoa(input) {
input = escape(input); input = escape(input);