don't animate badge for Firefox

This commit is contained in:
Florian Dold 2018-01-22 01:28:07 +01:00
parent ae177549a5
commit 3325d1d050
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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) => {