Methods
clear()
Clear all local storage data.
- Source:
clear()
Clear all local storage data.
- Source:
getHideIntroduction() → {boolean}
Get the user's introduction hiding preference from local storage.
- Source:
Returns:
True if the introduction should be hidden, false otherwise
- Type
- boolean
getHideIntroduction() → {boolean}
Get the user's introduction hiding preference from local storage.
- Source:
Returns:
True if the introduction should be hidden, false otherwise
- Type
- boolean
getShowTooltips() → {boolean|null}
Get the user's tooltip display preference from local storage.
- Source:
Returns:
True if tooltips should be shown, null if not set
- Type
- boolean | null
getSource() → {string|null}
Get the user's saved source code from local storage.
- Source:
Returns:
The saved source code or null if not found
- Type
- string | null
getSource() → {string|null}
Get the user's saved source code from local storage.
- Source:
Returns:
The saved source code or null if not found
- Type
- string | null
setHideIntroduction(hide)
Set the user's introduction hiding preference in local storage.
Parameters:
| Name | Type | Description |
|---|---|---|
hide |
boolean | Whether to hide the introduction |
- Source:
setHideIntroduction(hide)
Set the user's introduction hiding preference in local storage.
Parameters:
| Name | Type | Description |
|---|---|---|
hide |
boolean | Whether to hide the introduction |
- Source:
setShowTooltips(show)
Set the user's tooltip display preference in local storage.
Parameters:
| Name | Type | Description |
|---|---|---|
show |
boolean | Whether to show tooltips |
- Source:
setSource(code)
Save the user's source code to local storage.
Parameters:
| Name | Type | Description |
|---|---|---|
code |
string | The source code to save |
- Source:
setSource(code)
Save the user's source code to local storage.
Parameters:
| Name | Type | Description |
|---|---|---|
code |
string | The source code to save |
- Source: