From 3325d1d050f637cdd9a2932d7dd28c23d189d23c Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 22 Jan 2018 01:28:07 +0100 Subject: don't animate badge for Firefox --- src/webex/chromeBadge.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/webex/chromeBadge.ts') 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) => { -- cgit v1.2.3