mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-07-10 05:31:23 +00:00
refactor update checking
This commit is contained in:
parent
f45f570730
commit
18f0d454be
1 changed files with 12 additions and 14 deletions
|
|
@ -834,7 +834,6 @@ function registerCoverListener() {
|
|||
registerCoverListener();
|
||||
|
||||
// Check latest release every 10m
|
||||
waitForElement([".main-topBar-container"], ([topBarContainer]) => {
|
||||
function checkForUpdate() {
|
||||
fetch("https://api.github.com/repos/JulienMaille/dribbblish-dynamic-theme/releases/latest")
|
||||
.then((response) => response.json())
|
||||
|
|
@ -848,7 +847,6 @@ waitForElement([".main-topBar-container"], ([topBarContainer]) => {
|
|||
|
||||
setInterval(checkForUpdate, 10 * 60 * 1000);
|
||||
checkForUpdate();
|
||||
});
|
||||
|
||||
// Show "Offline info"
|
||||
window.addEventListener("offline", () =>
|
||||
|
|
|
|||
Loading…
Reference in a new issue