mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-17 23:21:04 +00:00
25 lines
722 B
JavaScript
25 lines
722 B
JavaScript
/*!
|
|
{
|
|
"name": "Base 64 encoding/decoding",
|
|
"property": "atobbtoa",
|
|
"builderAliases": ["atob-btoa"],
|
|
"caniuse": "atob-btoa",
|
|
"tags": ["atob", "base64", "WindowBase64", "btoa"],
|
|
"authors": ["Christian Ulbrich"],
|
|
"notes": [{
|
|
"name": "WindowBase64",
|
|
"href": "https://www.w3.org/TR/html5/webappapis.html#windowbase64"
|
|
}, {
|
|
"name": "MDN Docs",
|
|
"href": "https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/atob"
|
|
}],
|
|
"polyfills": ["base64js"]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Detects support for WindowBase64 API (window.atob && window.btoa).
|
|
*/
|
|
define(['Modernizr'], function(Modernizr) {
|
|
Modernizr.addTest('atobbtoa', 'atob' in window && 'btoa' in window, {aliases: ['atob-btoa']});
|
|
});
|