merge master and improvements

This commit is contained in:
10G Meow 2024-03-09 11:15:48 +02:00
commit 7444891b6d
21 changed files with 748 additions and 208 deletions

View file

@ -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);