store version in variable

This commit is contained in:
AJ ONeal 2017-06-14 22:47:34 +00:00
parent b4b4aeab04
commit 9dac84b3a1
1 changed files with 3 additions and 2 deletions

View File

@ -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;