6de2455917
- Added GLOBAL_MARKETS_TITLE to all translation files - Updated footer with 12 markets (4 active + 8 upcoming) - Translated market section to: zh-cn, zh-tw, ja, ko, th, vi, id, ms, hi - Built and deployed to production - CloudFront invalidation: I3RTMXVFDJXWLG3SYX208OP1CC
19 lines
401 B
JavaScript
19 lines
401 B
JavaScript
var enabled = require('enabled');
|
|
|
|
/**
|
|
* Creates a new Adapter.
|
|
*
|
|
* @param {Function} fn Function that returns the value.
|
|
* @returns {Function} The adapter logic.
|
|
* @public
|
|
*/
|
|
module.exports = function create(fn) {
|
|
return function adapter(namespace) {
|
|
try {
|
|
return enabled(namespace, fn());
|
|
} catch (e) { /* Any failure means that we found nothing */ }
|
|
|
|
return false;
|
|
};
|
|
}
|