Skip to content

Commit

Permalink
fix: disable animations in firefox (#1175)
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpoy authored Dec 18, 2023
2 parents d872acd + 0f6c188 commit 7f7e8c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/frontend/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
</ion-menu>
<ion-router-outlet
id="main-content"
[animated]="enableAnimations"
[class]="{
cookingToolbarOpen: cookingToolbarService.pinnedRecipes.length > 0
}"
Expand Down
3 changes: 3 additions & 0 deletions packages/frontend/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ export class AppComponent {
isSelfHost = IS_SELFHOST;
isLoggedIn?: boolean;

// See https://bugzilla.mozilla.org/show_bug.cgi?id=1811099
enableAnimations = !navigator.userAgent.toLowerCase().includes("firefox");

navList?: { id: string; title: string; icon: string; url: string }[];

inboxCount?: number;
Expand Down

0 comments on commit 7f7e8c3

Please sign in to comment.