increase api delay a little, use new Date.now()

pull/53/head
lartsch 2022-12-29 05:22:35 -05:00
rodzic 0276c2e06a
commit 90ad7818f4
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -17,7 +17,7 @@ const mutesApi = "/api/v1/mutes"
const blocksApi = "/api/v1/blocks"
const domainBlocksApi = "/api/v1/domain_blocks"
const pollsApi = "/api/v1/polls"
const apiDelay = 600
const apiDelay = 650
const maxTootCache = 200
const modalHtml = '<div class="fediactmodal"><div class="fediactmodalinner"><ul class="fediactmodallist"></ul></div></div>'
@ -143,7 +143,7 @@ function makeRequest(method, url, extraheaders, jsonbody) {
})
}
// TODO: move this to the top? or get new Date.now() here?
tmpSettings.lasthomerequest = currenttime
tmpSettings.lasthomerequest = Date.now()
}
try {
await chrome.runtime.sendMessage({requestdata: [method, url, extraheaders, jsonbody]}, function(response) {

2
src/inject.min.js vendored

File diff suppressed because one or more lines are too long