Skip to content

Commit

Permalink
just use localStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 4, 2017
1 parent 6a0cdc5 commit b921b78
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
],
"globals": {
"bridge": true,
"chrome": true
"chrome": true,
"localStorage": true
},
"rules": {
"object-curly-spacing": 0
Expand Down
1 change: 0 additions & 1 deletion shells/chrome/src/storage.js

This file was deleted.

4 changes: 1 addition & 3 deletions shells/chrome/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ module.exports = {
filename: '[name].js',
},
resolve: {
alias: Object.assign({}, alias, {
storage: path.resolve(__dirname, './src/storage')
})
alias
},
module: {
rules: [
Expand Down
3 changes: 1 addition & 2 deletions shells/dev/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ module.exports = {
},
resolve: {
alias: Object.assign({}, alias, {
vue$: 'vue/dist/vue.common.js',
storage: path.resolve(__dirname, './src/storage')
vue$: 'vue/dist/vue.common.js'
})
},
module: {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/devtools/views/events/module.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import storage from 'storage'
import storage from '../../storage'

const ENABLED_KEY = 'EVENTS_ENABLED'
const enabled = storage.get(ENABLED_KEY)
Expand Down
2 changes: 1 addition & 1 deletion src/devtools/views/vuex/module.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { parse } from 'src/util'
import * as actions from './actions'
import storage from 'storage'
import storage from '../../storage'

const REGEX_RE = /^\/(.*?)\/(\w*)/
const ANY_RE = new RegExp('.*', 'i')
Expand Down

0 comments on commit b921b78

Please sign in to comment.