From 90642ee9c8d59ac00e26866124058a509ff7d82f Mon Sep 17 00:00:00 2001 From: networkException Date: Thu, 6 Jan 2022 01:56:50 +0100 Subject: [PATCH] Index: Stash tokens and spans on the window object to make them inspectable --- public/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index 6bd7a23..e3ee2be 100644 --- a/public/index.html +++ b/public/index.html @@ -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();