Skip to content

Commit

Permalink
exclude old Firefox browsers, fixes #835
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeterding committed Nov 23, 2018
1 parent e223873 commit 464e9c9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/misc/ClientDetector.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ class ClientDetector {
this.randomNumbers() &&
this.supportsFocus() &&
this.notIE() &&
this.arrayIncludes()
this.arrayIncludes() &&
this.notOldFirefox()
}

isMobileDevice(): boolean {
Expand Down Expand Up @@ -343,6 +344,12 @@ class ClientDetector {
return this.browser !== BrowserType.IE
}

notOldFirefox() {
// issue only occurs for old Firefox browsers
// https://github.com/tutao/tutanota/issues/835
return this.browser !== BrowserType.FIREFOX || this.browserVersion > 40
}

browserData(): BrowserData {
return {browserType: this.browser, browserVersion: this.browserVersion}
}
Expand Down

0 comments on commit 464e9c9

Please sign in to comment.