me when codeberg

This commit is contained in:
ThatOneCalculator 2023-07-02 00:20:14 -07:00
parent 17009455da
commit d3ccd00d5e
No known key found for this signature in database
GPG key ID: 8703CACD01000000
2 changed files with 12 additions and 2 deletions

View file

@ -170,7 +170,12 @@ import { defaultStore } from "@/store";
import * as os from "@/os";
import { definePageMetadata } from "@/scripts/page-metadata";
const patrons = await os.api("patrons", { forceUpdate: true });
let patrons = [];
try {
patrons = await os.api("patrons", { forceUpdate: true });
} catch {
console.error("Codeberg's down.")
}
let easterEggReady = false;
let easterEggEmojis = $ref([]);

View file

@ -451,7 +451,12 @@ const timeForThem = $computed(() => {
return "";
});
const patrons = await os.api("patrons");
let patrons = [];
try {
patrons = await os.api("patrons");
} catch {
console.error("Codeberg's down.")
}
function parallaxLoop() {
parallaxAnimationId = window.requestAnimationFrame(parallaxLoop);