From ea8303ba9dd791072db0f290e5eb4edea4a2f812 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Fri, 13 Jan 2023 22:51:33 -0800 Subject: [PATCH] Update document title with input value --- script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/script.js b/script.js index feabc15..b823312 100644 --- a/script.js +++ b/script.js @@ -91,6 +91,7 @@ function handleChange(value) { // Update URL with the input but do not spam the history const url = new URL(`?q=${value}`, window.location.origin); window.history.replaceState({}, '', url); + document.title = `utf-8-visualizer: ${value}`; const output = calculateOutput(value); render(output); -- 2.47.3