File tree 1 file changed +3
-18
lines changed
1 file changed +3
-18
lines changed Original file line number Diff line number Diff line change 5
5
≈ 500 byte* polyfill for browsers which don't provide [ ` window.btoa ` ] [ 1 ] and
6
6
[ ` window.atob ` ] [ 2 ] .
7
7
8
- Although the script does no harm in browsers which do provide these functions,
9
- a conditional script loader such as [ yepnope] [ 3 ] can prevent unnecessary HTTP
10
- requests.
11
-
12
- ``` javascript
13
- yepnope ({
14
- test: window .btoa && window .atob ,
15
- nope: ' base64.js' ,
16
- callback : function () {
17
- // `btoa` and `atob` are now safe to use
18
- }
19
- })
20
- ```
21
-
22
- Base64.js stems from a [ gist] [ 4 ] by [ yahiko] [ 5 ] .
8
+ Base64.js stems from a [ gist] [ 3 ] by [ yahiko] [ 4 ] .
23
9
24
10
### Running the test suite
25
11
@@ -31,6 +17,5 @@ Base64.js stems from a [gist][4] by [yahiko][5].
31
17
32
18
[ 1 ] : https://developer.mozilla.org/en/DOM/window.btoa
33
19
[ 2 ] : https://developer.mozilla.org/en/DOM/window.atob
34
- [ 3 ] : http://yepnopejs.com/
35
- [ 4 ] : https://gist.github.com/229984
36
- [ 5 ] : https://github.com/yahiko
20
+ [ 3 ] : https://gist.github.com/229984
21
+ [ 4 ] : https://github.com/yahiko
You can’t perform that action at this time.
0 commit comments