diff --git a/README.md b/README.md index 9cb1f983..4ea776d0 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ - filters for reactions: - matching by regex, domain-specific, or catch-all - filters the actual reactions to post as well as notifications +- option to disable favicon badge when there's unread notifications --- diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js index 21f90b48..e78f2c69 100644 --- a/src/components/notifications/notifications.js +++ b/src/components/notifications/notifications.js @@ -85,7 +85,8 @@ const Notifications = { watch: { unseenCountTitle (count) { if (count > 0) { - FaviconService.drawFaviconBadge() + if (this.$store.getters.mergedConfig.showFaviconBadge) + FaviconService.drawFaviconBadge() this.$store.dispatch('setPageTitle', `(${count})`) } else { FaviconService.clearFaviconBadge() diff --git a/src/components/settings_modal/tabs/general_tab.vue b/src/components/settings_modal/tabs/general_tab.vue index 1515d4c2..257f8dc5 100644 --- a/src/components/settings_modal/tabs/general_tab.vue +++ b/src/components/settings_modal/tabs/general_tab.vue @@ -293,6 +293,14 @@ {{ $t('settings.dedupe_boosts') }} +
  • + + {{ $t('settings.show_favicon_badge') }} + +
  • {{ $t('settings.columns') }}

  • diff --git a/src/i18n/en.json b/src/i18n/en.json index f1db37cf..f9a848e7 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -775,6 +775,7 @@ "settings_profiles_show": "Show all settings profiles", "settings_profiles_unshow": "Hide all settings profiles", "show_admin_badge": "Show \"Admin\" badge in my profile", + "show_favicon_badge": "Show a badge on the page's favicon when there are unread notifications (requires refresh)", "show_moderator_badge": "Show \"Moderator\" badge in my profile", "show_nav_shortcuts": "Show extra navigation shortcuts in top panel", "show_panel_nav_shortcuts": "Show timeline navigation shortcuts at the top of the panel", diff --git a/src/modules/config.js b/src/modules/config.js index da8fb2ef..539e31dc 100644 --- a/src/modules/config.js +++ b/src/modules/config.js @@ -128,6 +128,7 @@ export const defaultState = { recurseSearch: false, recurseSearchLimit: 100, dedupeBoosts: true, + showFaviconBadge: true, renderMisskeyMarkdown: undefined, renderMfmOnHover: undefined, // instance default conversationDisplay: undefined, // instance default diff --git a/src/modules/instance.js b/src/modules/instance.js index 15b5f358..4afee9e8 100644 --- a/src/modules/instance.js +++ b/src/modules/instance.js @@ -84,6 +84,7 @@ const defaultState = { recurseSearch: false, recurseSearchLimit: 100, dedupeBoosts: true, + showFaviconBadge: true, renderMisskeyMarkdown: true, renderMfmOnHover: false, conversationDisplay: 'linear',