File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 9
9
"scripts" : {
10
10
"test" : " ./node_modules/.bin/xo" ,
11
11
"build" : " ./node_modules/.bin/gulp build" ,
12
- "watch" : " ./node_modules/.bin/gulp watch"
12
+ "watch" : " ./node_modules/.bin/gulp watch" ,
13
+ "precommit" : " npm test" ,
14
+ "prepush" : " npm test"
13
15
},
14
16
"browserslist" : [
15
17
" > 1%" ,
Original file line number Diff line number Diff line change 32
32
localforage
33
33
. getItem ( 'js_practice_config' )
34
34
. then ( val => {
35
- // console.log('localforage val:', val);
36
35
if ( val ) {
37
36
config = val ;
38
37
}
46
45
function updateLocalstore ( config ) {
47
46
return localforage
48
47
. setItem ( 'js_practice_config' , config )
49
- . then ( val => {
50
- // console.log('Settings updated:', val);
51
- } )
48
+ . then ( val => val )
52
49
. catch ( err => {
53
50
console . log ( 'Settings update error:' , err ) ;
54
51
} ) ;
You can’t perform that action at this time.
0 commit comments