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. Windows are assumed to have only one translate() call in a transform: CSS in-line style. Aforementioned translate() is expected to be in pixel units. It can read non-pixel units, but will save/load as pixel units.

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": "!!#L3/kBp'Gb8]q"
  "windowStates": {"fltr": "!!$L4", "bm": "/kBp:"}
}