From 78fefb6c8f4a2e2177a1bf600717ce179be6660c Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 29 May 2020 18:28:15 +0200 Subject: [PATCH] function.js: Fix global variable B64keyStr declaration --- src/includes/js/functions.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/includes/js/functions.js b/src/includes/js/functions.js index 2c242c84..1ebcb657 100644 --- a/src/includes/js/functions.js +++ b/src/includes/js/functions.js @@ -290,11 +290,11 @@ function generate_uuid() { * Source : http://ntt.cc/2008/01/19/base64-encoder-decoder-with-javascript.html */ if ($type(atob) != 'function') { - B64keyStr = "ABCDEFGHIJKLMNOP" + - "QRSTUVWXYZabcdef" + - "ghijklmnopqrstuv" + - "wxyz0123456789+/" + - "="; + var B64keyStr = "ABCDEFGHIJKLMNOP" + + "QRSTUVWXYZabcdef" + + "ghijklmnopqrstuv" + + "wxyz0123456789+/" + + "="; function btoa(input) { input = escape(input);