This commit is contained in:
Valeria Fadeeva 2023-12-15 22:01:46 +05:00
parent 02cd64918f
commit 78150c538f
2 changed files with 5 additions and 1 deletions

View File

@ -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 = "";

View File

@ -94,6 +94,10 @@ switch (query) {
bodyFetch(query);
break;
case "/mastodon":
bodyFetch(query);
break;
default:
bodyFetch();
}