Skip to content

Commit bdf8915

Browse files
committed
Rename localStorage
Rename localStorage
1 parent 506f427 commit bdf8915

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

docs/js/app.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/js/app.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/precache-manifest.74640a257ebc0242e5ba6ef7fe92ce33.js renamed to docs/precache-manifest.dbac9c93558486b3a7b8f9602eb689d1.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ self.__precacheManifest = [
2020
"url": "/vue-crypto-dashboard/js/chunk-6f3e5ba8.js"
2121
},
2222
{
23-
"revision": "059a0a854dc9b56000a6",
23+
"revision": "164abc25e656e9d6d52e",
2424
"url": "/vue-crypto-dashboard/js/app.js"
2525
},
2626
{
@@ -44,7 +44,7 @@ self.__precacheManifest = [
4444
"url": "/vue-crypto-dashboard/fonts/fontawesome-webfont.eot"
4545
},
4646
{
47-
"revision": "059a0a854dc9b56000a6",
47+
"revision": "164abc25e656e9d6d52e",
4848
"url": "/vue-crypto-dashboard/css/app.css"
4949
}
5050
];

docs/service-worker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.4.1/workbox-sw.js");
1515

1616
importScripts(
17-
"/vue-crypto-dashboard/precache-manifest.74640a257ebc0242e5ba6ef7fe92ce33.js"
17+
"/vue-crypto-dashboard/precache-manifest.dbac9c93558486b3a7b8f9602eb689d1.js"
1818
);
1919

2020
workbox.core.setCacheNameDetails({prefix: "vue-crypto-dashboard"});

src/store.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Vue.use(Vuex);
77
export default new Vuex.Store({
88
strict: true,
99
state: {
10-
currencies: localStorage.hasOwnProperty('vue-crypto-currencies')? JSON.parse(localStorage.getItem('vue-crypto-currencies')) : defaultPair,
10+
currencies: localStorage.hasOwnProperty('vue-crypto-currencies-new')? JSON.parse(localStorage.getItem('vue-crypto-currencies-new')) : defaultPair,
1111
tickers: {},
1212
chartData: []
1313
},
@@ -28,15 +28,15 @@ export default new Vuex.Store({
2828
ADD_COIN_PAIR: (state, payload) => {
2929
if(!state.tickers[payload.symbol]) {
3030
state.currencies.push(payload);
31-
localStorage.setItem('vue-crypto-currencies', JSON.stringify(state.currencies))
31+
localStorage.setItem('vue-crypto-currencies-new', JSON.stringify(state.currencies))
3232
}
3333
Vue.set(state.tickers, payload.symbol, { pchg: 1 })
3434

3535
},
3636
REMOVE_COIN_PAIR: (state, symbol) => {
3737
Vue.delete(state.tickers, symbol)
3838
state.currencies.splice(state.currencies.findIndex(s => s.symbol === symbol), 1);
39-
localStorage.setItem('vue-crypto-currencies', JSON.stringify(state.currencies))
39+
localStorage.setItem('vue-crypto-currencies-new', JSON.stringify(state.currencies))
4040
}
4141
}
4242
})

0 commit comments

Comments
 (0)