Index: Stash tokens and spans on the window object to make them inspectable
This commit is contained in:
parent
a4c234be81
commit
90642ee9c8
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue