Skip to content

Commit

Permalink
change detection method
Browse files Browse the repository at this point in the history
  • Loading branch information
Robonau committed Nov 15, 2023
1 parent cbcab57 commit 4ec737e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
export let data: PageData;
let mangaMeta = MangaMeta(data.MangaID);
$: if (navigator.userAgentData?.mobile && $mangaMeta.mobileFullScreenOnChapterPage) {
$: if (
/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) &&
$mangaMeta.mobileFullScreenOnChapterPage
) {
document.documentElement.requestFullscreen();
}
Expand Down

0 comments on commit 4ec737e

Please sign in to comment.