fix: 🥴

This commit is contained in:
ThatOneCalculator 2022-12-17 17:47:38 -08:00
parent 02cb89801a
commit 74eaf9def4
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
3 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{
"name": "calckey",
"version": "13.0.9",
"version": "13.0.5-rc.1",
"codename": "aqua",
"repository": {
"type": "git",

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -14,7 +14,7 @@
<div class="_formRoot">
<div class="_formBlock fwhjspax" :style="{ backgroundImage: `url(${ $instance.bannerUrl })` }">
<div class="content">
<img ref="instanceIcon" :src="$store.state.woozyMode ? '/assets/woozy.png' : $instance.iconUrl || $instance.faviconUrl || '/favicon.ico'" aria-label="none" class="icon" @click="easterEgg"/>
<img ref="instanceIcon" :src="defaultStore.state.woozyMode === true ? '/static-assets/woozy.png' : $instance.iconUrl || $instance.faviconUrl || '/favicon.ico'" aria-label="none" class="icon" @click="easterEgg"/>
<div class="name">
<b>{{ $instance.name || host }}</b>
</div>
@ -166,6 +166,10 @@ definePageMetadata(computed(() => ({
icon: 'ph-info-bold ph-lg',
})));
async function sleep(seconds) {
return new Promise((resolve) => setTimeout(resolve, seconds * 1000));
}
async function easterEgg(): Promise<void> {
iconClicks++;
instanceIcon.style.animation = 'unset';
@ -182,10 +186,6 @@ async function easterEgg(): Promise<void> {
let swiperRef = null;
async function sleep(seconds) {
return new Promise((resolve) => setTimeout(resolve, seconds * 1000));
}
function setSwiperRef(swiper) {
swiperRef = swiper;
syncSlide(tabs.indexOf(tab));