From 762d0bde64482651e7b59e9b504fd18896b0f50f Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Sat, 17 Dec 2022 18:02:19 -0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=A5=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- packages/client/src/pages/about.vue | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index fead2619a3..1adf235a9a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calckey", - "version": "13.0.5-rc.3", + "version": "13.0.5-rc.4", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/client/src/pages/about.vue b/packages/client/src/pages/about.vue index 93d3ddfea1..7e182b4e17 100644 --- a/packages/client/src/pages/about.vue +++ b/packages/client/src/pages/about.vue @@ -14,7 +14,7 @@
- +
{{ $instance.name || host }}
@@ -109,6 +109,7 @@ import { i18n } from '@/i18n'; import { definePageMetadata } from '@/scripts/page-metadata'; import { deviceKind } from '@/scripts/device-kind'; import { iAmModerator } from '@/account'; +import { instance } from '@/instance'; import { defaultStore } from '@/store'; import 'swiper/scss'; import 'swiper/scss/virtual'; @@ -172,7 +173,7 @@ async function sleep(seconds) { function easterEgg() { iconClicks++; - instanceIcon.style.animation = 'unset'; + instanceIcon.style.animation = ''; console.log(iconClicks); sleep(0.1); const normalizedCount = (iconClicks % 3) + 1; @@ -181,8 +182,14 @@ function easterEgg() { console.log('here'); defaultStore.state.woozyMode = !defaultStore.state.woozyMode; sleep(0.4); - instanceIcon.style.animation = 'unset'; + instanceIcon.style.animation = ''; instanceIcon.style.animation = 'swpinY 0.9s 1'; + if (iconClicks % 6 === 0) { + instanceIcon.src = instance.iconUrl || instance.faviconUrl || '/favicon.ico' + } + else { + instanceIcon.src = '/static-assets/woozy.png'; + } } }