refactor(_layout): City-Regex-Prüfung ignorieren, wenn IS_MOBILE_DEVICE
- IS_MOBILE_DEVICE als globalen konstanten Wert hinzugefügt - DEVICE_TYPE geändert in DEVICE_SCREEN_TYPE - IS_DESKTOP zu IS_DESKTOP_SIZE geändert
This commit is contained in:
@@ -57,12 +57,4 @@ function detailedCurrentDate() {
|
||||
second: '2-digit',
|
||||
timeZoneName: 'shortOffset'
|
||||
}).format();
|
||||
}
|
||||
|
||||
let __is_mobile = null;
|
||||
function isMobile() {
|
||||
if (__is_mobile === null) {
|
||||
__is_mobile = /Mobi|Android/i.test(window.navigator.userAgent);
|
||||
}
|
||||
return __is_mobile;
|
||||
}
|
||||
Reference in New Issue
Block a user