1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 01:09:42 +01:00

Merge pull request #248 from lorenzhs/fix-base64

JS Resolver API: Wrap base64 functions
This commit is contained in:
Uwe L. Korn 2014-08-21 18:48:38 +02:00
commit 78f2f321d5

View File

@ -419,5 +419,5 @@ Tomahawk.hmac = function (key, message) {
// some aliases
Tomahawk.setTimeout = Tomahawk.setTimeout || window.setTimeout;
Tomahawk.setInterval = Tomahawk.setInterval || window.setInterval;
Tomahawk.base64Decode = window.atob;
Tomahawk.base64Encode = window.btoa;
Tomahawk.base64Decode = function(a) { return window.atob(a); };
Tomahawk.base64Encode = function(b) { return window.btoa(b); };