AbstractStaticisStaticpathReturns the current local storage path if not browser
Sets the local storage path if not browser
StaticclearClears the local storage
StaticdomainSets 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
StaticgetStatichasReturns if the local storage has the key available
StaticidRetrieves the underlying key ID for the specified key
StaticincludesReturns if the local storage has the key available
StaticoffRemoves 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
StaticonListen 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
StaticonceListen 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
StaticremoveRemoves the key from local storage
Staticset
Returns if the module is using a browser's localStorage