Navbar: Do not wait for animation duration if it's zero
| @@ -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'); |