Add: Welcome guide

This commit is contained in:
Cutls
2019-09-12 23:25:27 +09:00
parent a4e3031796
commit bf69d23379
10 changed files with 106 additions and 23 deletions

View File

@@ -516,18 +516,16 @@ function ticker() {
var start = "https://toot.app/toot/";
fetch(start, {
method: 'GET',
mode: 'no-cors',
headers: {
'content-type': 'application/json'
},
}).then(function (response) {
return response.json();
}).catch(function (error) {
console.error(error);
}).then(function (json) {
if (json.error) {
return;
}
console.log(json)
if (json) {
localStorage.setItem("ticker", JSON.stringify(json));
}