don't animate badge for Firefox
This commit is contained in:
parent
ae177549a5
commit
3325d1d050
@ -18,6 +18,8 @@ import {
|
|||||||
Badge,
|
Badge,
|
||||||
} from "../walletTypes";
|
} from "../walletTypes";
|
||||||
|
|
||||||
|
import { isFirefox } from "./compat";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Polyfill for requestAnimationFrame, which
|
* Polyfill for requestAnimationFrame, which
|
||||||
@ -190,6 +192,10 @@ export class ChromeBadge implements Badge {
|
|||||||
if (this.animationRunning) {
|
if (this.animationRunning) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (isFirefox()) {
|
||||||
|
// Firefox does not support badge animations properly
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.animationRunning = true;
|
this.animationRunning = true;
|
||||||
let start: number|undefined;
|
let start: number|undefined;
|
||||||
const step = (timestamp: number) => {
|
const step = (timestamp: number) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user