mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 08:19:05 +01:00
function.js: fix compatibility with Safari
This commit is contained in:
parent
ff3ca35bed
commit
49656cd6f6
1 changed files with 5 additions and 6 deletions
|
@ -289,13 +289,12 @@ 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') {
|
|
||||||
var B64keyStr = "ABCDEFGHIJKLMNOP" +
|
var B64keyStr = "ABCDEFGHIJKLMNOP" +
|
||||||
"QRSTUVWXYZabcdef" +
|
"QRSTUVWXYZabcdef" +
|
||||||
"ghijklmnopqrstuv" +
|
"ghijklmnopqrstuv" +
|
||||||
"wxyz0123456789+/" +
|
"wxyz0123456789+/" +
|
||||||
"=";
|
"=";
|
||||||
|
if ($type(atob) != 'function') {
|
||||||
function btoa(input) {
|
function btoa(input) {
|
||||||
input = escape(input);
|
input = escape(input);
|
||||||
var output = "";
|
var output = "";
|
||||||
|
|
Loading…
Reference in a new issue