Update
This commit is contained in:
parent
eda77108d6
commit
6d83575668
|
@ -1,6 +1,6 @@
|
|||
let query = window.location.pathname;
|
||||
|
||||
if(query == "/mastodon") {
|
||||
if (query == "/news") {
|
||||
let tplUrl = 'json/mastodon-tpl.html';
|
||||
let response = await fetch(tplUrl);
|
||||
var tpl = "";
|
||||
|
@ -35,9 +35,9 @@ if(query == "/mastodon") {
|
|||
|
||||
var server_address = `techhub.social`;
|
||||
|
||||
const response = await fetch('json/posts.json');
|
||||
// const response = await fetch('json/posts.json');
|
||||
|
||||
// const response = await fetch(`https://${server_address}/api/v1/accounts/111518136987654656/statuses`);
|
||||
const response = await fetch(`https://${server_address}/api/v1/accounts/111518136987654656/statuses`);
|
||||
|
||||
const data = await response.json();
|
||||
|
||||
|
|
|
@ -182,4 +182,5 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div id="log"></div>
|
||||
</div><!-- /.container -->
|
||||
|
|
Loading…
Reference in New Issue