Skip to content

Commit

Permalink
Lily/lmsutils: Android is mobile (#973)
Browse files Browse the repository at this point in the history
Android browsers do not include the word "Mobile" in their user agent
  • Loading branch information
GarboMuffin committed Aug 27, 2023
1 parent 66d20b7 commit 6ee9cbe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extensions/Lily/lmsutils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,10 @@
}

isUserMobile(args, util) {
return navigator.userAgent.includes("Mobile");
return (
navigator.userAgent.includes("Mobile") ||
navigator.userAgent.includes("Android")
);
}

screenReporter(args) {
Expand Down

0 comments on commit 6ee9cbe

Please sign in to comment.