MCPcopy
hub / github.com/gitify-app/gitify / saveState

Function saveState

src/renderer/utils/core/storage.ts:11–16  ·  view source on GitHub ↗
(gitifyState: GitifyState)

Source from the content-addressed store, hash-verified

9}
10
11export function saveState(gitifyState: GitifyState) {
12 const auth = gitifyState.auth;
13 const settings = gitifyState.settings;
14 const settingsString = JSON.stringify({ auth, settings });
15 localStorage.setItem(Constants.STORAGE.LEGACY, settingsString);
16}
17
18export function clearState() {
19 localStorage.clear();

Callers 2

setAsPrimaryAccountFunction · 0.90
AppProviderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected