aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-01-22 01:28:07 +0100
committerFlorian Dold <florian.dold@gmail.com>2018-01-22 01:28:07 +0100
commit3325d1d050f637cdd9a2932d7dd28c23d189d23c (patch)
tree3b7ef3ace8f8cdd4d22931044797508bbbb52c0c /src
parentae177549a5818e2698253ef17a11b1effbd66fdb (diff)
don't animate badge for Firefox
Diffstat (limited to 'src')
-rw-r--r--src/webex/chromeBadge.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/webex/chromeBadge.ts b/src/webex/chromeBadge.ts
index beb1dc444..15b68ef02 100644
--- a/src/webex/chromeBadge.ts
+++ b/src/webex/chromeBadge.ts
@@ -18,6 +18,8 @@ import {
Badge,
} from "../walletTypes";
+import { isFirefox } from "./compat";
+
/**
* Polyfill for requestAnimationFrame, which
@@ -190,6 +192,10 @@ export class ChromeBadge implements Badge {
if (this.animationRunning) {
return;
}
+ if (isFirefox()) {
+ // Firefox does not support badge animations properly
+ return;
+ }
this.animationRunning = true;
let start: number|undefined;
const step = (timestamp: number) => {