From 29ca10f7827e26fc17ab67502a48ce315f814aaa Mon Sep 17 00:00:00 2001 From: Lukas Hollaender Date: Tue, 8 Sep 2020 14:01:02 +0200 Subject: [PATCH] fix atob/btoa for IE/old Edge fix #2901 --- src/libs/AtobBtoa.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/AtobBtoa.js b/src/libs/AtobBtoa.js index 70bd63af5..798a66318 100644 --- a/src/libs/AtobBtoa.js +++ b/src/libs/AtobBtoa.js @@ -4,8 +4,8 @@ var atob, btoa; (function() { // @if MODULE_FORMAT!='cjs' - atob = globalObject.atob; - btoa = globalObject.btoa; + atob = globalObject.atob.bind(globalObject); + btoa = globalObject.btoa.bind(globalObject); return; // @endif