-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught DOMException: Failed to execute 'atob' on 'Window' #1
Comments
Probably because of ff5c87d |
Well that commit should only change the tests - so I'm not certain that would affect things. Whilst I've posited above that I think this is probably something to do with the browser tightening the meaning of I find working with the javascript ecosystem infuriating like this because to me it's completely opaque as to where the problem is and what has changed to make this problem appear. |
atob and btoa are standard on Web and not going anywhere due backward compatibility the Web is famous for … I’ve no idea which environment you’re after but from JS perspective window.atob or just atob are the same. Moreover, there are environments where window doesn’t exist (Workers) and self.atob or atob is still the same. in short, you have an issue with your environment |
Hmm looks like I was experiencing some kind of weird different bug - which might have been temporary. |
I guess we can close this then |
First of all thank you for providing this library.
We have recently starting experiencing an
Uncaught DOMException: Failed to execute 'atob' on 'Window'
on use of this library.I think the meaning of
use strict;
(at least on chrome) has recently got a lot more strict and the use of the non-importedatob
andbtoa
in this library is now causing an Uncaught DOMException.As far as I can see, replacing
atob
andbtoa
withwindow.atob
andwindow.btoa
makes things work again but I'm uncertain as to whether this is the correct approach.The text was updated successfully, but these errors were encountered: