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:
parent
1007cfa9b2
commit
69b703d8a4
@ -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); };
|
||||
|
Loading…
x
Reference in New Issue
Block a user