Skip to content

Commit bc6c640

Browse files
authored
Merge pull request #2905 from HackbrettXXX/fix-atob-btoa
fix atob/btoa for IE/old Edge
2 parents cddca80 + 29ca10f commit bc6c640

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libs/AtobBtoa.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ var atob, btoa;
44

55
(function() {
66
// @if MODULE_FORMAT!='cjs'
7-
atob = globalObject.atob;
8-
btoa = globalObject.btoa;
7+
atob = globalObject.atob.bind(globalObject);
8+
btoa = globalObject.btoa.bind(globalObject);
99
return;
1010
// @endif
1111

0 commit comments

Comments
 (0)