* Checks `localStorage` for boolean values for the given `name`. * * @param {String} name * @returns {Boolean} * @api private
(name)
| 8168 | */ |
| 8169 | |
| 8170 | function config (name) { |
| 8171 | // accessing global.localStorage can trigger a DOMException in sandboxed iframes |
| 8172 | try { |
| 8173 | if (!global.localStorage) return false; |
| 8174 | } catch (_) { |
| 8175 | return false; |
| 8176 | } |
| 8177 | var val = global.localStorage[name]; |
| 8178 | if (null == val) return false; |
| 8179 | return String(val).toLowerCase() === 'true'; |
| 8180 | } |
| 8181 | |
| 8182 | }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) |
| 8183 | },{}],58:[function(require,module,exports){ |
no outgoing calls
no test coverage detected