MCPcopy Create free account
hub / github.com/bewcloud/bewcloud / localstorage

Function localstorage

lib/models/dav.js:1622–1631  ·  view source on GitHub ↗

* Localstorage attempts to return the localstorage. * * This is necessary because safari throws * when a user disables cookies/localstorage * and you attempt to access it. * * @return {LocalStorage} * @api private

()

Source from the content-addressed store, hash-verified

1620 */
1621
1622 function localstorage() {
1623 try {
1624 // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
1625 // The Browser also has localStorage in the global context.
1626 return localStorage;
1627 } catch (error) {
1628 // Swallow
1629 // XXX (@Qix-) should we be logging these?
1630 }
1631 }
1632
1633 module.exports = requireCommon()(exports);
1634

Callers 1

requireBrowserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected