cocos2d / cocos2d-js

cocos2d-x for JS
http://www.cocos2d-x.org
MIT License
1.86k stars 490 forks source link

cc.Codec.Base64.encode or window.btoa missing #1511

Open starquake opened 9 years ago

starquake commented 9 years ago

I really searched around carefully before creating this issue but I can not find it and I need it to authenticate to my rest service with XHR.

starquake commented 9 years ago

I found this: http://www.webtoolkit.info/javascript-base64.html

That's probably what you used to create the decode function. Can you use that? If you want I could try making a pull request. If you are willing to include it.

starquake commented 9 years ago

I made a pull request to the right repository here: https://github.com/cocos2d/cocos2d-html5/pull/2717

pandamicro commented 9 years ago

Thanks @starquake, @dingpinglv will review it soon.