* Load `namespaces`. * * @return {String} returns the previously persisted debug modes * @api private
()
| 27545 | */ |
| 27546 | |
| 27547 | function load() { |
| 27548 | var r; |
| 27549 | try { |
| 27550 | r = exports.storage.debug; |
| 27551 | } catch (e) {} |
| 27552 | |
| 27553 | // If debug isn't set in LS, and we're in Electron, try to load $DEBUG |
| 27554 | if (!r && typeof process !== 'undefined' && 'env' in process) { |
| 27555 | r = process.env.DEBUG; |
| 27556 | } |
| 27557 | |
| 27558 | return r; |
| 27559 | } |
| 27560 | |
| 27561 | /** |
| 27562 | * Enable namespaces listed in `localStorage.debug` initially. |
no outgoing calls
no test coverage detected