Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d4ae1bf

Browse files
re-add linter githook step
1 parent 4d6e2f0 commit d4ae1bf

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

‎package.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
"scripts": {
1010
"test": "./node_modules/.bin/xo",
1111
"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"
1315
},
1416
"browserslist": [
1517
"> 1%",

‎src/js/index.js‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
localforage
3333
.getItem('js_practice_config')
3434
.then(val => {
35-
// console.log('localforage val:', val);
3635
if (val) {
3736
config = val;
3837
}
@@ -46,9 +45,7 @@
4645
function updateLocalstore(config) {
4746
return localforage
4847
.setItem('js_practice_config', config)
49-
.then(val => {
50-
// console.log('Settings updated:', val);
51-
})
48+
.then(val => val)
5249
.catch(err => {
5350
console.log('Settings update error:', err);
5451
});

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /