var _global_ = { uploadIng: [], client: "pc", map: {} }; function setLocalStorageProperty(key) { Object.defineProperty(_global_, key, { get: function () { return JSON.parse(localStorage.getItem(key)); }, set: function (data) { return localStorage.setItem(key, JSON.stringify(data)); } }); } setLocalStorageProperty("TOKEN"); setLocalStorageProperty("USER_TYPE"); setLocalStorageProperty("AUTH"); setLocalStorageProperty("TOKEN_LIST"); setLocalStorageProperty("CODES"); if (document.cookie) { _global_.client = document.cookie; }