fix: 🥴

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

View file

@ -1,6 +1,6 @@
{ {
"name": "calckey", "name": "calckey",
"version": "13.0.5-rc.1", "version": "13.0.5-rc.2",
"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="defaultStore.state.woozyMode === true ? '/static-assets/woozy.png' : $instance.iconUrl || $instance.faviconUrl || '/favicon.ico'" aria-label="none" class="icon" @click="easterEgg"/> <img ref="instanceIcon" :src="!defaultStore.state.woozyMode ? '/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>
@ -177,7 +177,7 @@ async function easterEgg(): Promise<void> {
const normalizedCount = (iconClicks % 3) + 1; const normalizedCount = (iconClicks % 3) + 1;
instanceIcon.style.animation = `iconShake${normalizedCount} 0.${normalizedCount}s 1`; instanceIcon.style.animation = `iconShake${normalizedCount} 0.${normalizedCount}s 1`;
if (iconClicks % 3 === 0) { if (iconClicks % 3 === 0) {
defaultStore.state.set('woozyMode', !defaultStore.state.woozyMode); defaultStore.state.woozyMode = !defaultStore.state.woozyMode;
await sleep(0.4); await sleep(0.4);
instanceIcon.style.animation = 'unset'; instanceIcon.style.animation = 'unset';
instanceIcon.style.animation = 'swpinY 0.9s 1'; instanceIcon.style.animation = 'swpinY 0.9s 1';