Navbar: Do not wait for animation duration if it's zero

6217ea988879e53e19cc487802ad79a38dd7601d

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/script.js+1 -1
@@ -9270,7 +9270,7 @@ export async function doNavbarIconClick() {
9270 for (const el of $openDrawers) {9270 for (const el of $openDrawers) {
9271 $(el).toggleClass('closedDrawer openDrawer');9271 $(el).toggleClass('closedDrawer openDrawer');
9272 }9272 }
9273 if ($openDrawers.length) {9273 if ($openDrawers.length && animation_duration) {
9274 await delay(animation_duration);9274 await delay(animation_duration);
9275 }9275 }
9276 icon.toggleClass('openIcon closedIcon');9276 icon.toggleClass('openIcon closedIcon');