From 9dac84b3a172a56068fb612479ae02f440b21886 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 14 Jun 2017 22:47:34 +0000 Subject: [PATCH] store version in variable --- js/issuer.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/issuer.js b/js/issuer.js index 582f2c8..84d998a 100644 --- a/js/issuer.js +++ b/js/issuer.js @@ -1,9 +1,10 @@ $(function () { 'use strict'; - if ('1' !== window.localStorage.getItem('version')) { + var version = '1'; + if (version !== window.localStorage.getItem('version')) { window.localStorage.clear(); - window.localStorage.setItem('version', '1'); + window.localStorage.setItem('version', version); } var OAUTH3 = window.OAUTH3;