This commit is contained in:
cutls 2020-05-03 22:46:55 +09:00
parent 4dbc673719
commit 9aef043344
2 changed files with 5 additions and 3 deletions

View File

@ -142,9 +142,10 @@ function verck(ver, jp) {
if (!localStorage.getItem('last-notice-id')) { if (!localStorage.getItem('last-notice-id')) {
localStorage.setItem('last-notice-id', 0) localStorage.setItem('last-notice-id', 0)
} }
var start = 'https://thedesk.top/notice?since_id=' + localStorage.getItem('last-notice-id') var start = 'https://thedesk.top/notice/index.php?since_id=' + localStorage.getItem('last-notice-id')
fetch(start, { fetch(start, {
method: 'GET' method: 'GET',
cors: true
}) })
.then(function(response) { .then(function(response) {
if (!response.ok) { if (!response.ok) {

View File

@ -590,9 +590,10 @@ function enc(ver) {
} }
//インスタンスティッカー //インスタンスティッカー
function ticker() { function ticker() {
var start = 'https://toot.app/toot/' var start = 'https://toot.app/toot/index.php'
fetch(start, { fetch(start, {
method: 'GET', method: 'GET',
cors: true,
headers: { headers: {
'content-type': 'application/json' 'content-type': 'application/json'
} }