mirror of
https://github.com/tutao/tutanota.git
synced 2025-12-08 06:09:50 +00:00
check browser support for regex look behind
this commit drops support for iOS 16.2 due to an issue with regex support Co-authored-by: sug <sug@tutao.de>
This commit is contained in:
parent
e703609e87
commit
df0b6f7b71
1 changed files with 10 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ export class ClientDetector {
|
||||||
*/
|
*/
|
||||||
isSupported(): boolean {
|
isSupported(): boolean {
|
||||||
this.syntaxChecks()
|
this.syntaxChecks()
|
||||||
return this.isSupportedBrowserVersion() && this.testBuiltins() && this.websockets() && this.testCss()
|
return this.isSupportedBrowserVersion() && this.testBuiltins() && this.websockets() && this.testCss() && this.lookBehindRegex()
|
||||||
}
|
}
|
||||||
|
|
||||||
isMobileDevice(): boolean {
|
isMobileDevice(): boolean {
|
||||||
|
|
@ -184,6 +184,15 @@ export class ClientDetector {
|
||||||
return "XMLHttpRequest" in window
|
return "XMLHttpRequest" in window
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lookBehindRegex(): boolean {
|
||||||
|
try {
|
||||||
|
;/(?<=([ab]+)([bc]+))$/.exec("abc")
|
||||||
|
return true
|
||||||
|
} catch (e) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
indexedDb(): boolean {
|
indexedDb(): boolean {
|
||||||
try {
|
try {
|
||||||
return window.indexedDB != null
|
return window.indexedDB != null
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue