don't animate badge for Firefox
This commit is contained in:
parent
ae177549a5
commit
3325d1d050
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user