From 5c19587e3df840b7be9ed551957c73fe9f580ea9 Mon Sep 17 00:00:00 2001 From: Paul Hibbitts Date: Fri, 27 Dec 2024 10:44:49 -0800 Subject: [PATCH] Update index.html --- docs/index.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/index.html b/docs/index.html index dd751f7d..826fa720 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1376,9 +1376,11 @@ fontfamily = getURLParameterByName(['font-family', 'fontFamily'], null, null, window.location.href, true); if (fontfamily) { - const urlParams = new URLSearchParams(window.location.search); // Get query string - const fontFamily = urlParams.get('font-family'); // Get the raw string of 'font-family' - document.getElementById('fontfamily').value = encodeURI(fontfamily); + const urlParams = new URLSearchParams(window.location.search); + const fontFamily = urlParams.get('font-family'); + const plusToSpace = fontFamily.replace(/\+/g, '%20'); + const decodedString = decodeURIComponent(plusToSpace); + document.getElementById('fontfamily').value = encodeURI(decodedString); } fontsize = getURLParameterByName(['font-size', 'fontSize'], null, null, window.location.href, true);