Initial commit
This commit is contained in:
11
src/index.html
Normal file
11
src/index.html
Normal 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
15
src/main.js
Normal 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
2
src/pako_inflate.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user