fix: 🥴

This commit is contained in:
ThatOneCalculator 2022-12-17 17:47:38 -08:00
parent ec36655a83
commit 5b1b0569cc
3 changed files with 6 additions and 6 deletions

View file

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

View file

@ -14,7 +14,7 @@
<div class="_formRoot"> <div class="_formRoot">
<div class="_formBlock fwhjspax" :style="{ backgroundImage: `url(${ $instance.bannerUrl })` }"> <div class="_formBlock fwhjspax" :style="{ backgroundImage: `url(${ $instance.bannerUrl })` }">
<div class="content"> <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"> <div class="name">
<b>{{ $instance.name || host }}</b> <b>{{ $instance.name || host }}</b>
</div> </div>
@ -166,6 +166,10 @@ definePageMetadata(computed(() => ({
icon: 'ph-info-bold ph-lg', icon: 'ph-info-bold ph-lg',
}))); })));
async function sleep(seconds) {
return new Promise((resolve) => setTimeout(resolve, seconds * 1000));
}
async function easterEgg(): Promise<void> { async function easterEgg(): Promise<void> {
iconClicks++; iconClicks++;
instanceIcon.style.animation = 'unset'; instanceIcon.style.animation = 'unset';
@ -182,10 +186,6 @@ async function easterEgg(): Promise<void> {
let swiperRef = null; let swiperRef = null;
async function sleep(seconds) {
return new Promise((resolve) => setTimeout(resolve, seconds * 1000));
}
function setSwiperRef(swiper) { function setSwiperRef(swiper) {
swiperRef = swiper; swiperRef = swiper;
syncSlide(tabs.indexOf(tab)); syncSlide(tabs.indexOf(tab));