TheDesk Airi (ver.7)

This commit is contained in:
cutls
2018-03-20 13:55:25 +09:00
parent d689438b23
commit d6acb0bebc
24 changed files with 857 additions and 55 deletions

View File

@@ -19,7 +19,6 @@ function ck() {
}
if (at) {
ckdb(0);
$("#tl").show();
parseColumn();
multi();
@@ -262,7 +261,7 @@ function ckdb(acct_id) {
}
}else{
var ver=enc(localStorage.getItem("ver"));
var start = "https://dl.thedesk.top/mastodon_data.json?"+ver;
var start = "https://dl.thedesk.top/mastodon_data.json?eu=ai";
fetch(start, {
method: 'GET',
headers: {
@@ -300,6 +299,19 @@ function ckdb(acct_id) {
}else{
localStorage.removeItem("bb_" + acct_id);
}
if(json[domain + "_home"]){
console.log("unique name:"+json[domain + "_home"]);
localStorage.setItem("home_" + acct_id, json[domain + "_home"]);
}
if(json[domain + "_local"]){
localStorage.setItem("local_" + acct_id, json[domain + "_local"]);
}
if(json[domain + "_public"]){
localStorage.setItem("public_" + acct_id, json[domain + "_public"]);
}
if(json[domain + "_notification"]){
localStorage.setItem("notification_" + acct_id, json[domain + "_notification"]);
}
});
}