This commit is contained in:
Valeria Fadeeva 2023-12-15 22:41:55 +05:00
parent efbb43cfad
commit c20386fa54
1 changed files with 6 additions and 7 deletions

View File

@ -69,20 +69,19 @@ async function fetchData() {
log.innerHTML += `${post_tpl}<br>`;
});
}
async function openInNewTab(url) {
window.open(url, '_blank').focus();
}
async function getMastodonPage() {
let log = document.getElementById('log');
if (!log) {
setTimeout(getMastodonPage, 1000);
return;
}
let tplUrl = 'json/mastodon-tpl.html';
let response = await fetch(tplUrl);
var tpl = "";
let log = document.getElementById('log');
if (!log) {
setTimeout(getMastodonPage, 1000);
}
log.innerHTML = "";