Skip to content

Commit

Permalink
fix(player): safari detector
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaraa committed Jul 5, 2024
1 parent 782b617 commit 4d20b3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/static/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ function setMediaSessionMetadata(song) {
}

function isSafari() {
return navigator.userAgent.toLowerCase().includes("safari");
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
}

const [toggleLoop, handleLoop, checkLoop] = looper();
Expand Down

0 comments on commit 4d20b3a

Please sign in to comment.