Abstract
Static
isStatic
pathReturns the current local storage path if not browser
Sets the local storage path if not browser
Static
clearClears the local storage
Static
domainSets the domain scope of the local storage on disk
This prevents other applications using this library from stomping on the storage of others
Note: For scope to apply, must be called before all other calls
Static
getStatic
hasReturns if the local storage has the key available
Static
idRetrieves the underlying key ID for the specified key
Static
includesReturns if the local storage has the key available
Static
offRemoves a listener previously attached with LocalStorage.on(key, fn).
value: the current value for key in local storage, parsed from the persisted JSON old: the old value for key in local storage, parsed from the persisted JSON url: the url for the tab where the modification came from
Static
onListen for changes persisted against key on other tabs. Triggers StorageCallback when a change occurs, passing the following arguments.
value: the current value for key in local storage, parsed from the persisted JSON old: the old value for key in local storage, parsed from the persisted JSON url: the url for the tab where the modification came from
Static
onceListen ONCE for changes persisted against key on other tabs Triggers StorageCallback when a change occurs, passing the following arguments.
value: the current value for key in local storage, parsed from the persisted JSON old: the old value for key in local storage, parsed from the persisted JSON url: the url for the tab where the modification came from
Static
removeRemoves the key from local storage
Static
set
Returns if the module is using a browser's localStorage