From b4446dcd4ac036acb4a8c2d67059d90030534b47 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 11 Jan 2017 20:00:37 +0000 Subject: [PATCH] Use consistent naming in storage --- src/app/storage.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/storage.js b/src/app/storage.js index fb9250d258..0bcc71c83a 100644 --- a/src/app/storage.js +++ b/src/app/storage.js @@ -1,16 +1,16 @@ 'use strict' function Storage () { - this.exists = function (key) { - return !!this.get(key) + this.exists = function (name) { + return !!this.get(name) } - this.get = function (key) { - return window.localStorage.getItem(key) + this.get = function (name) { + return window.localStorage.getItem(name) } - this.set = function (key, content) { - window.localStorage.setItem(key, content) + this.set = function (name, content) { + window.localStorage.setItem(name, content) } this.keys = function () {