MCPcopy Create free account
hub / github.com/codecombat/codecombat / handleStorage

Function handleStorage

app/lib/user-utils.js:34–40  ·  view source on GitHub ↗
(key, value, expirationInMinutes)

Source from the content-addressed store, hash-verified

32}
33
34function handleStorage (key, value, expirationInMinutes) {
35 if (value) {
36 localStorage.save(key, value, expirationInMinutes)
37 } else {
38 localStorage.remove(key)
39 }
40}
41
42function isInLibraryNetwork () {
43 return !!localStorage.load(libraryNetworkLSKey())

Callers 1

extraProvisionsFunction · 0.85

Calls 1

saveMethod · 0.45

Tested by

no test coverage detected