// import {swClient} from "./js/ws"; // swClient(); const load = async (path) => { const paths = path && path.split("/") || []; const protocol = path.length || ""; switch (protocol) { case "ipfs": case "ipns": { document.body.innerHTML = ``; } } }; if (document.documentElement.dataset.viewer) { load(location.pathname); }