SettingsManager

SettingsManager

new SettingsManager()

SettingsManager class for handling user settings and making them persist between sessions. Logic for WindowSettings is managed here. "Flags" should follow the same styling as .classList() and should not contain spaces. A flag should always be false by default. When a flag is false, it will not exist in the "flags" Array. (Therefore, "flags" should be [] by default) If it exists in the "flags" Array, then the flag is true.

Since:
  • 0.91.11
Source:
Example
{
  "uuid": "497dcba3-ecbf-4587-a2dd-5eb0665e6880",
  "telemetry": 1,
  "flags": ["hl-noTrans", "ftr-oWin", "te-noSkip"],
  "highlight": [[1,0,-1],[1,-1,0],[2,1,0],[1,0,1]],
  "filter": [-2,0,4,5,6,29,63]
}