Index: Stash tokens and spans on the window object to make them inspectable

This commit is contained in:
networkException 2022-01-06 01:56:50 +01:00
parent a4c234be81
commit 90642ee9c8
Signed by: networkException
GPG key ID: E3877443AE684391

View file

@ -67,8 +67,8 @@
const response = await fetch(window.location.href);
const text = await response.text();
const tokens = tokenize(normalizeNewlines(text));
const spans = highlight(tokens);
window.tokens = tokenize(normalizeNewlines(text));
window.spans = highlight(tokens);
const inspector = new Inspector();