From 78150c538ffb948d855c700cee4a07150b2da314 Mon Sep 17 00:00:00 2001 From: Valeria Fadeeva Date: Fri, 15 Dec 2023 22:01:46 +0500 Subject: [PATCH] Update --- public/assets/js/mastodon.js | 2 +- public/assets/js/script.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/public/assets/js/mastodon.js b/public/assets/js/mastodon.js index ec76307..f9d4d98 100644 --- a/public/assets/js/mastodon.js +++ b/public/assets/js/mastodon.js @@ -1,6 +1,6 @@ let query = window.location.pathname; -if (query == "/news") { +if (query == "/news" || query == "/mastodon") { let tplUrl = 'json/mastodon-tpl.html'; let response = await fetch(tplUrl); var tpl = ""; diff --git a/public/assets/js/script.js b/public/assets/js/script.js index d7b5123..ff7ec60 100644 --- a/public/assets/js/script.js +++ b/public/assets/js/script.js @@ -94,6 +94,10 @@ switch (query) { bodyFetch(query); break; + case "/mastodon": + bodyFetch(query); + break; + default: bodyFetch(); }