Skip to content

Commit

Permalink
feat: show message if user agent is iOS Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
Bergbok committed Jan 21, 2025
1 parent 62ae6dd commit d72ca36
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ m.route(document.body, '/', {
m('div#page-info', [
m('section', [
m('h1', 'Welcome'),
!subtitlesLoaded && iPhoneSafariUA ? m('h2', [
'Seems like you\'re using Safari. If the site crashes you should try ',
m('a', { href: 'https://apps.apple.com/us/app/firefox-private-safe-browser/id989804926' }, 'Firefox'),
' and closing all other apps.'
]) : null,
m('p', 'This webpage lets you search through transcriptions of all Jerma\'s main channel videos, archived streams and more.')
]),
subtitlesLoaded ?
Expand Down

0 comments on commit d72ca36

Please sign in to comment.