From 49656cd6f6215fa709674770aa79ab9d87fb5121 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 3 Jun 2020 11:53:37 +0200 Subject: [PATCH] function.js: fix compatibility with Safari --- src/includes/js/functions.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/includes/js/functions.js b/src/includes/js/functions.js index 1ebcb657..f09beb72 100644 --- a/src/includes/js/functions.js +++ b/src/includes/js/functions.js @@ -289,13 +289,12 @@ function generate_uuid() { * * Source : http://ntt.cc/2008/01/19/base64-encoder-decoder-with-javascript.html */ +var B64keyStr = "ABCDEFGHIJKLMNOP" + + "QRSTUVWXYZabcdef" + + "ghijklmnopqrstuv" + + "wxyz0123456789+/" + + "="; if ($type(atob) != 'function') { - var B64keyStr = "ABCDEFGHIJKLMNOP" + - "QRSTUVWXYZabcdef" + - "ghijklmnopqrstuv" + - "wxyz0123456789+/" + - "="; - function btoa(input) { input = escape(input); var output = "";