1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-13 04:21:51 +02:00

JS Resolver API: Wrap base64 functions

Otherwise, we get TypeErrors
This commit is contained in:
Lorenz Hübschle-Schneider 2014-08-21 17:41:23 +01:00
parent 1007cfa9b2
commit 69b703d8a4

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); };