(require("userSettings"))(storage) → {UserSettings}
#
Creates an object whose methods encapsulate all interactions with the UA's storage.
Parameters:
Name | Type | Description |
---|---|---|
storage |
The |
- Source:
Returns:
- Type
- UserSettings
Methods
isPreviewTypeEnabled(previewType) → {boolean}inner
#
Check whether the preview type is enabled.
Parameters:
Name | Type | Description |
---|---|---|
previewType |
string |
- Source:
Returns:
- Type
- boolean