* Checks `localStorage` for boolean values for the given `name`. * * @param {String} name * @returns {Boolean} * @api private
(name)
| 29462 | */ |
| 29463 | |
| 29464 | function config (name) { |
| 29465 | // accessing global.localStorage can trigger a DOMException in sandboxed iframes |
| 29466 | try { |
| 29467 | if (!global.localStorage) return false; |
| 29468 | } catch (_) { |
| 29469 | return false; |
| 29470 | } |
| 29471 | var val = global.localStorage[name]; |
| 29472 | if (null == val) return false; |
| 29473 | return String(val).toLowerCase() === 'true'; |
| 29474 | } |
| 29475 | |
| 29476 | }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) |
| 29477 | },{}],155:[function(require,module,exports){ |
no outgoing calls
no test coverage detected