Commit b4446dcd authored by Alex Beregszaszi's avatar Alex Beregszaszi

Use consistent naming in storage

parent 705d465a
'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 () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment