1var store = { 2 userData: { 3 store: { 4 sih_user: {} 5 } 6 }, 7 setItem: function (key, value) { 8 this.userData = this.userData || {}; 9 this.userData.store = this.userData.store || {}; 10 this.userData.store.sih_user[key] = value; 11 localStorage.setItem("ContextHubPersistence", JSON.stringify(this.userData)); 12 }, 13 getItem: function (key) { 14 this.userData = JSON.parse(localStorage.getItem("ContextHubPersistence")) || {}; 15 this.userData.store = this.userData.store || {}; 16 this.userData.store.sih_user = this.userData.store.sih_user || {}; 17 return this.userData.store.sih_user[key]; 18 }, 19 clean: function () { 20 localStorage.removeItem("ContextHubPersistence"); 21 this.userData = { 22 store: { 23 sih_user: {} 24 } 25 }; 26 } 27};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.