MCPcopy Index your code
hub / github.com/Justineo/github-hovercard / restore

Function restore

extensions/firefox/options.js:28–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28function restore() {
29 storage.get(
30 {
31 domains: [],
32 delay: 200,
33 readme: true,
34 disableProjects: false,
35 showSelf: false,
36 side: 'top',
37 theme: 'classic'
38 },
39 item => {
40 current = item.domains
41 list.append(Mustache.render(ITEM_TPL, { domains: current }))
42 delayInput.val(item.delay)
43 readmeInput.prop('checked', item.readme)
44 projectsInput.prop('checked', item.disableProjects)
45 showSelfInput.prop('checked', item.showSelf)
46 sideInputs
47 .prop('checked', false)
48 .filter(`[value="${item.side}"]`)
49 .prop('checked', true)
50 themeInputs
51 .prop('checked', false)
52 .filter(`[value="${item.theme}"]`)
53 .prop('checked', true)
54 }
55 )
56}
57
58function save() {
59 let delay = delayInput.val()

Callers 1

options.jsFile · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected