Update index.js

This commit is contained in:
Nicholas Jitkoff 2022-05-20 09:55:53 -07:00
parent 5810b59cca
commit 1755761952

View file

@ -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) {