Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed May 7, 2024
1 parent 47fe80d commit 64e25b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ function showImg (img) {

function stopImgInterval (img) {
if (img.interval) {
img.interval = null;
clearInterval(img.interval);
img.interval = null;
}
}

Expand Down Expand Up @@ -311,5 +311,5 @@ function doNext () {
}

function isMobileBrowser () {
return /Mobile|Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
return windowWidth < 500 || /Mobile|Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
}

0 comments on commit 64e25b1

Please sign in to comment.