diff --git a/packages/client/src/pages/about.vue b/packages/client/src/pages/about.vue index 40dcd9405d..296d9194ca 100644 --- a/packages/client/src/pages/about.vue +++ b/packages/client/src/pages/about.vue @@ -261,34 +261,24 @@ definePageMetadata( })), ); -async function sleep(seconds) { - return new Promise((resolve) => setTimeout(resolve, seconds * 1000)); -} - onMounted(() => { if (defaultStore.state.woozyMode) { - instanceIcon.src = "/static-assets/woozy.png"; + instanceIcon!.src = "/static-assets/woozy.png"; } }); function easterEgg() { iconClicks++; - instanceIconAnimation = "noAnimation"; - console.log(instanceIconAnimation); - sleep(0.1); - const normalizedCount = (iconClicks % 3) + 1; - instanceIconAnimation = `shake${normalizedCount}`; if (iconClicks % 3 === 0) { defaultStore.state.woozyMode = !defaultStore.state.woozyMode; - sleep(0.4); - instanceIconAnimation = "noAnimation"; - instanceIconAnimation = "doSpinY"; - console.log(instanceIconAnimation); - if (iconClicks % 6 === 0) { - instanceIcon.src = - instance.iconUrl || instance.faviconUrl || "/favicon.ico"; - } else { - instanceIcon.src = "/static-assets/woozy.png"; + defaultStore.set("woozyMode", defaultStore.state.woozyMode); + if (instanceIcon) { + if (iconClicks % 6 === 0) { + instanceIcon.src = + instance.iconUrl || instance.faviconUrl || "/favicon.ico"; + } else { + instanceIcon.src = "/static-assets/woozy.png"; + } } } } @@ -310,123 +300,6 @@ function syncSlide(index) {