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

Function restore

extensions/edge/options.js:28–50  ·  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 sideInput.prop('value', item.side)
47 themeInput.prop('value', item.theme)
48 }
49 )
50}
51
52function save() {
53 let delay = delayInput.val()

Callers 1

options.jsFile · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected