Skip to content

Commit

Permalink
fix: bad comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
sirpy committed Nov 21, 2019
1 parent 5172c38 commit ef49a73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sea.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
if(typeof Buffer === "undefined") {
root.Buffer = require("buffer").Buffer
}
if(typeof btoa !== "undefined"){
if(typeof btoa === "undefined"){
root.btoa = function (data) { return Buffer.from(data, "binary").toString("base64"); };
root.atob = function (data) { return Buffer.from(data, "base64").toString("binary"); };
}
Expand Down
2 changes: 1 addition & 1 deletion sea/base64.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
if(typeof Buffer === "undefined") {
root.Buffer = require("buffer").Buffer
}
if(typeof btoa !== "undefined"){
if(typeof btoa === "undefined"){
root.btoa = function (data) { return Buffer.from(data, "binary").toString("base64"); };
root.atob = function (data) { return Buffer.from(data, "base64").toString("binary"); };
}
Expand Down

0 comments on commit ef49a73

Please sign in to comment.