taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 3325d1d050f637cdd9a2932d7dd28c23d189d23c
parent ae177549a5818e2698253ef17a11b1effbd66fdb
Author: Florian Dold <florian.dold@gmail.com>
Date:   Mon, 22 Jan 2018 01:28:07 +0100

don't animate badge for Firefox

Diffstat:
Msrc/webex/chromeBadge.ts | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git 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) => {