`,n=document.getElementById("errors"));const h=document.createElement("details");h.innerHTML=`
ERROR CODE: ${e}
${JSON.stringify(t)}`,n.appendChild(h),f(`
* {
font-family: Roboto,HelveticaNeue,Arial,sans-serif;
}
#iceshrimp_app,
#splash {
display: none !important;
}
body,
html {
background-color: #3b364c;
color: rgb(231, 237, 255);
justify-content: center;
margin: auto;
padding: 10px;
text-align: center;
}
button {
border-radius: 999px;
padding: 0px 12px 0px 12px;
border: none;
cursor: pointer;
margin-bottom: 12px;
}
.button-big {
background: linear-gradient(-45deg, rgb(154, 146, 255), rgb(131, 114, 245));
line-height: 50px;
}
.button-big:hover {
background: rgb(201, 197, 255);
}
.button-small {
background: #544d77;
line-height: 40px;
}
.button-small:hover {
background: #504967;
}
.button-label-big {
color: #3b364c;
font-weight: bold;
font-size: 2em;
padding: 12px;
}
.button-label-small {
color: rgb(231, 237, 255);
font-size: 16px;
padding: 12px;
}
a {
color: rgb(255, 123, 114);
text-decoration: none;
}
p,
li {
font-size: 16px;
}
.dont-worry,
#msg {
font-size: 18px;
}
.icon-warning {
color: rgb(236, 182, 55);
height: 4rem;
padding-top: 2rem;
}
h1 {
font-size: 32px;
}
code {
font-family: Fira, FiraCode, monospace;
}
details {
background: #423c55;
margin-bottom: 2rem;
padding: 0.5rem 1rem;
width: 40rem;
border-radius: 10px;
justify-content: center;
margin: auto;
}
summary {
cursor: pointer;
}
summary > * {
display: inline;
}
@media screen and (max-width: 500px) {
details {
width: 50%;
}
`)}async function p(){try{const t=await(await fetch("/api/meta",{method:"POST",cache:"no-cache"})).json();t.version!=s&&(localStorage.setItem("v",t.version),S())}catch(e){throw console.error(e),a("UPDATE_CHECK",e),e}}function S(){try{navigator.serviceWorker.controller.postMessage("clear"),navigator.serviceWorker.getRegistrations().then(e=>{e.forEach(t=>t.unregister())})}catch(e){console.error(e)}location.reload()}})();
Debugging the Debuggers