blob: 87603a05e2601a3affa9a60a6c5ab1821e240009 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
const REPOSITORY = 'selectedGithubRepository'
const BRANCH = 'selectedGithubBranch'
export function getPersistedRepository() {
return JSON.parse(localStorage.getItem(REPOSITORY))
}
export function setPersistedRepository(repository) {
localStorage.setItem(REPOSITORY, JSON.stringify(repository))
}
export function getPersistedBranch() {
return JSON.parse(localStorage.getItem(BRANCH))
}
export function setPersistedBranch(branch) {
localStorage.setItem(BRANCH, JSON.stringify(branch))
}
|