MCPcopy Create free account
hub / github.com/cure53/H5SC / offline

Function offline

html/scripts/import.js:14–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 // rudimentary off-line support
13 (function(){
14 var offline = function(){
15 var store = JSON.parse(localStorage[location.hostname]);
16 items = store.items;
17 categories = store.categories;
18 payloads = store.payloads;
19 $('#offline').show();
20 };
21 if(navigator.onLine || typeof navigator.onLine === 'undefined') {
22 try {
23 localStorage[location.hostname]=JSON.stringify(

Callers 1

import.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected