Fix navbar badge

This commit is contained in:
Matthias 2022-04-16 07:05:16 +02:00
parent 01dd38c0db
commit 614c2a80c6

View File

@ -167,7 +167,7 @@ export default defineComponent({
}; };
const setOpenTradesAsPill = (tradeCount: number) => { const setOpenTradesAsPill = (tradeCount: number) => {
if (!favicon) { if (!favicon.value) {
favicon.value = new Favico({ favicon.value = new Favico({
animation: 'none', animation: 'none',
// position: 'up', // position: 'up',
@ -177,9 +177,9 @@ export default defineComponent({
}); });
} }
if (tradeCount !== 0 && settingsStore.openTradesInTitle === 'showPill') { if (tradeCount !== 0 && settingsStore.openTradesInTitle === 'showPill') {
favicon.badge(tradeCount); favicon.value.badge(tradeCount);
} else { } else {
favicon.reset(); favicon.value.reset();
console.log('reset'); console.log('reset');
} }
}; };