MCPcopy Create free account
hub / github.com/RubyLouvre/anu / load

Function load

test/babel.js:27547–27559  ·  view source on GitHub ↗

* Load `namespaces`. * * @return {String} returns the previously persisted debug modes * @api private

()

Source from the content-addressed store, hash-verified

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.

Callers 2

babel.jsFile · 0.85
loadScriptsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected