Use consistent naming in storage

pull/1/head
Alex Beregszaszi 8 years ago
parent 705d465a01
commit b4446dcd4a
  1. 12
      src/app/storage.js

@ -1,16 +1,16 @@
'use strict' 'use strict'
function Storage () { function Storage () {
this.exists = function (key) { this.exists = function (name) {
return !!this.get(key) return !!this.get(name)
} }
this.get = function (key) { this.get = function (name) {
return window.localStorage.getItem(key) return window.localStorage.getItem(name)
} }
this.set = function (key, content) { this.set = function (name, content) {
window.localStorage.setItem(key, content) window.localStorage.setItem(name, content)
} }
this.keys = function () { this.keys = function () {

Loading…
Cancel
Save