hra-api
Version:
The Human Reference Atlas (HRA) API deployed to https://apps.humanatlas.io/api/
7 lines (6 loc) • 573 B
JavaScript
const SPARQL_ENDPOINT = 'https://lod.humanatlas.io/sparql';
if("serviceWorker"in navigator){let o=location.pathname.replace(/\/[^\/]+$/,"/");navigator.serviceWorker.controller===null&&
location.reload(),navigator.serviceWorker.register("sw.js",{scope:o,type:"module"}).then(function(e){e.addEventListener(
"updatefound",function(){let n=e.installing;console.log("A new service worker is being installed:",n)}),console.log("Reg\
istration succeeded. Scope is "+e.scope)}).catch(function(e){console.log("Registration failed with "+e)})}
//# sourceMappingURL=sw-loader.js.map