Skip to content

Commit

Permalink
調整手機判斷
Browse files Browse the repository at this point in the history
  • Loading branch information
joe committed May 16, 2023
1 parent 15849cd commit da7e977
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -5079,12 +5079,11 @@ function findGroupAndIndex(promptId) {
otherDiv.appendChild(menuCollapseButton);

menuDiv.addEventListener("transitionend", function (event) {
const isMobileChrome = /Chrome.*Mobile/.test(navigator.userAgent);
const isMobile =
/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
navigator.userAgent
);
if (isMobile && isMobileChrome) {
if (isMobile) {
return;
}
if (localStorage.getItem("Custom.Settings.Menu.Hidden") === "N") {
Expand Down

0 comments on commit da7e977

Please sign in to comment.