mirror of
https://github.com/amark/gun.git
synced 2025-05-31 19:26:42 +00:00
7 lines
252 B
JavaScript
7 lines
252 B
JavaScript
|
|
if(typeof global !== "undefined"){
|
|
var g = global;
|
|
g.btoa = function (data) { return Buffer.from(data, "binary").toString("base64"); };
|
|
g.atob = function (data) { return Buffer.from(data, "base64").toString("binary"); };
|
|
}
|
|
|