Initial commit

This commit is contained in:
2025-10-27 04:10:37 +02:00
commit 359880cb9f
5 changed files with 59 additions and 0 deletions

11
src/index.html Normal file
View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>panic report</title>
<script src="main.js"></script>
<script src="pako_inflate.min.js"></script>
</head>
<body>
<pre id="logs"></pre>
</body>
</html>

15
src/main.js Normal file
View File

@@ -0,0 +1,15 @@
window.addEventListener('load', function() {
const base64 = window.location.hash.substring(1)
const zlib = Uint8Array.fromBase64(base64, { alphabet: 'base64url' });
const uncompressed = pako.inflate(new Uint8Array(zlib));
let decoded = new TextDecoder().decode(uncompressed);
const match = /^\[\d+\.\d+\]/m.exec(decoded);
if (match)
decoded = decoded.substring(match.index);
document.getElementById('logs').textContent = decoded;
});

2
src/pako_inflate.min.js vendored Normal file

File diff suppressed because one or more lines are too long