Revision 928122a9
b/src/gr/ebs/gss/client/rest/RestCommand.java | ||
---|---|---|
66 | 66 |
}-*/; |
67 | 67 |
|
68 | 68 |
public static native String base64decode(String encStr)/*-{ |
69 |
//commented because of firefox js error |
|
70 |
//if (typeof atob === 'function') { |
|
71 |
//return atob(encStr); |
|
72 |
//} |
|
69 |
if (typeof atob === 'function') { |
|
70 |
return atob(encStr); |
|
71 |
} |
|
73 | 72 |
var base64s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; |
74 | 73 |
var bits; |
75 | 74 |
var decOut = ""; |
Also available in: Unified diff