merge master and improvements
This commit is contained in:
commit
7444891b6d
21 changed files with 748 additions and 208 deletions
|
|
@ -924,17 +924,6 @@ class Util {
|
|||
});
|
||||
}
|
||||
|
||||
isMobileOrTabletBrowser() {
|
||||
// Regular expression to match common mobile and tablet browser user agent strings
|
||||
const mobileTabletPattern = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Tablet|Mobile|CriOS/i;
|
||||
|
||||
// Get the user agent string
|
||||
const userAgent = navigator.userAgent;
|
||||
|
||||
// Check if the user agent matches the pattern for mobile or tablet browsers
|
||||
return mobileTabletPattern.test(userAgent);
|
||||
}
|
||||
|
||||
getMatrixBaseUrl(user, config) {
|
||||
if (user) {
|
||||
const domain = User.domainPart(user.user_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue