diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/chromeBadge.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/chromeBadge.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/taler-wallet-webextension/src/chromeBadge.ts b/packages/taler-wallet-webextension/src/chromeBadge.ts index 7bc5d368d..63d0372b6 100644 --- a/packages/taler-wallet-webextension/src/chromeBadge.ts +++ b/packages/taler-wallet-webextension/src/chromeBadge.ts @@ -1,20 +1,20 @@ /* - This file is part of TALER - (C) 2016 INRIA + This file is part of GNU Taler + (C) 2022 Taler Systems S.A. - TALER is free software; you can redistribute it and/or modify it under the + GNU Taler is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. - TALER is distributed in the hope that it will be useful, but WITHOUT ANY + GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with - TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> + GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ -import { isFirefox } from "./compat"; +import { platform } from "./platform/background.js"; /** * Polyfill for requestAnimationFrame, which @@ -198,7 +198,7 @@ export class ChromeBadge { this.canvas.width, this.canvas.height, ); - chrome.browserAction.setIcon({ imageData }); + chrome.action.setIcon({ imageData }); } catch (e) { // Might fail if browser has over-eager canvas fingerprinting countermeasures. // There's nothing we can do then ... @@ -210,7 +210,7 @@ export class ChromeBadge { if (this.animationRunning) { return; } - if (isFirefox()) { + if (platform.isFirefox()) { // Firefox does not support badge animations properly return; } |