Skip to content

Commit

Permalink
Small devices fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FANMixco committed Jul 30, 2024
1 parent ba7c549 commit eaa2f90
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion js/timer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1503,7 +1503,13 @@ window.addEventListener('DOMContentLoaded', () => {

if (isFirstRun) {
if ((deviceDetector.device === 'phone' && isTouchDevice()) || deviceDetector.device !== 'phone') {
dialogWelcome.showModal();
if (window.innerWidth > 320) {
dialogWelcome.showModal();
} else {
setFirstRun();
}
} else {
setFirstRun();
}
}

Expand Down
Loading

0 comments on commit eaa2f90

Please sign in to comment.