Skip to content

Commit

Permalink
fix: complete safari perf fix
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Aug 30, 2023
1 parent 17fcb7e commit 2887e53
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/views/layout.pug
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,10 @@ html.h-100.no-js(
//- Safari has performance issues
//- <https://stackoverflow.com/a/40463096>
- const isSafari = /^((?!chrome|android|crios|fxios).)*safari/i.test(ctx.get("User-Agent"));
if (ctx.pathWithoutLocale === '/' && !isBot(ctx.get('User-Agent')))
if (!isSafari && ctx.pathWithoutLocale === '/' && !isBot(ctx.get('User-Agent')))
#stars.user-select-none
if !isSafari
#rocket.user-select-none
#waving.user-select-none
#rocket.user-select-none
#waving.user-select-none
- const isHelp = ctx.pathWithoutLocale && ctx.pathWithoutLocale === "/help";
- const isRegisterOrLogin = ctx.pathWithoutLocale && ["/register", config.loginRoute].includes(ctx.pathWithoutLocale);

Expand Down

0 comments on commit 2887e53

Please sign in to comment.