From 1755761952dd9ec906a4c507f3662fe95898fb0f Mon Sep 17 00:00:00 2001 From: Nicholas Jitkoff Date: Fri, 20 May 2022 09:55:53 -0700 Subject: [PATCH] Update index.js --- docs/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/index.js b/docs/index.js index dbf9ba5..7dabc3f 100644 --- a/docs/index.js +++ b/docs/index.js @@ -50,9 +50,9 @@ if (e.data.favicon) setFavicon(e.data.favicon); if (e.data.updateURL) { let path = "/" + e.data.title.replace(/\s/g, "_"); - if (e.data.description) path += "/d:" + encodeURIComponent(e.data.description); - if (e.data.favicon) path += "/f:" + encodeURIComponent(e.data.favicon); - if (e.data.image) path += "/i:" + encodeURIComponent(btoa(e.data.image)); + if (e.data.description) path += "/d/" + encodeURIComponent(e.data.description); + if (e.data.favicon) path += "/f/" + encodeURIComponent(e.data.favicon); + if (e.data.image) path += "/i/" + encodeURIComponent(btoa(e.data.image)); window.location.pathname = path; } if (e.data.replaceURL) {