4141 <div class =" issuer" >
4242 <img
4343 class =" issuerFavicon"
44- v-if =" shouldShowFavicon() && entry.issuer.split('::')[1]"
44+ v-if =" shouldShowFavicon && entry.issuer.split('::')[1]"
4545 v-bind:src =" getFaviconUrl(entry.issuer.split('::')[1])"
4646 /><IconMedal
4747 class =" issuerFavicon"
48- v-if =" shouldShowFavicon() && !entry.issuer.split('::')[1]"
48+ v-if =" shouldShowFavicon && !entry.issuer.split('::')[1]"
4949 />
50- {{
50+ {{
5151 entry.issuer.split("::")[0] +
5252 (theme === "compact" ? ` (${entry.account})` : "")
5353 }}
@@ -98,6 +98,7 @@ import { mapState } from "vuex";
9898import * as QRGen from " qrcode-generator" ;
9999import { OTPEntry , OTPType , CodeState , OTPAlgorithm } from " ../../models/otp" ;
100100import { EntryStorage } from " ../../models/storage" ;
101+ import { isFirefox , isSafari } from " ../../browser" ;
101102
102103import IconMinusCircle from " ../../../svg/minus-circle.svg" ;
103104import IconRedo from " ../../../svg/redo.svg" ;
@@ -118,7 +119,10 @@ const computedPrototype = [
118119 mapState (" menu" , [" theme" ]),
119120];
120121
121- let computed = {};
122+ let computed: {} = {
123+ shouldShowFavicon:
124+ ! isFirefox && ! isSafari && mapState (" menu" , [" showFavicon" ]).showFavicon ,
125+ };
122126
123127for (const module of computedPrototype ) {
124128 Object .assign (computed , module );
@@ -146,12 +150,6 @@ export default Vue.extend({
146150 entry .type !== OTPType .steam
147151 );
148152 },
149- shouldShowFavicon() {
150- return (
151- navigator .userAgent .indexOf (" Firefox" ) === - 1 &&
152- this .$store .state .menu .showFavicon
153- );
154- },
155153 getFaviconUrl(u : string ) {
156154 // TODO: Switch to commented out implementation when MV3
157155 // const url = new URL(chrome.runtime.getURL("/_favicon/"));
0 commit comments