@@ -20,7 +20,8 @@ import {
20
20
KeyTypefullyGrowTab ,
21
21
KeyWriterMode ,
22
22
KeyXPremiumButton ,
23
- KeyNavigationButtonsLabels
23
+ KeyNavigationButtonsLabels ,
24
+ KeyTitleNotifications
24
25
} from "../../../../storage-keys" ;
25
26
import changeHideViewCounts from "../options/hideViewCount" ;
26
27
import { addAnalyticsButton , addCommunitiesButton , addListsButton , addTopicsButton , addXPremiumButton , hideGrokDrawer , changeNavigationButtonsLabels } from "../options/navigation" ;
@@ -32,6 +33,7 @@ import { updateLeftSidebarPositioning } from "../utilities/leftSidebarPosition";
32
33
import { addSmallerSearchBarStyle } from "../utilities/other-styles" ;
33
34
import { getStorage } from "../utilities/storage" ;
34
35
import throttle from "../utilities/throttle" ;
36
+ import { changeTitleNotifications } from "../options/interface" ;
35
37
36
38
export const dynamicFeatures = {
37
39
general : async ( ) => {
@@ -45,6 +47,9 @@ export const dynamicFeatures = {
45
47
addMediaDownloadButtons ( ) ;
46
48
enableGrokDrawerOnGrokButtonClick ( data [ KeyHideGrokDrawer ] ) ;
47
49
} ,
50
+ interface : ( data ) => {
51
+ changeTitleNotifications ( data [ KeyTitleNotifications ] ) ;
52
+ } ,
48
53
typefullyPlugs : ( ) => {
49
54
saveCurrentReplyToLink ( ) ;
50
55
addTypefullyReplyPlug ( ) ;
@@ -78,14 +83,15 @@ export const dynamicFeatures = {
78
83
} ;
79
84
80
85
export const runDynamicFeatures = throttle ( async ( ) => {
81
- const data = await getStorage ( [ KeyWriterMode , KeyFollowingTimeline , KeyTrendsHomeTimeline , KeyRemoveTimelineTabs , KeyHideGrokDrawer , KeyNavigationButtonsLabels ] ) ;
86
+ const data = await getStorage ( [ KeyWriterMode , KeyFollowingTimeline , KeyTrendsHomeTimeline , KeyRemoveTimelineTabs , KeyHideGrokDrawer , KeyNavigationButtonsLabels , KeyTitleNotifications ] ) ;
82
87
83
88
if ( data ) {
84
89
dynamicFeatures . general ( ) ;
85
90
dynamicFeatures . typefullyPlugs ( ) ;
86
91
await dynamicFeatures . sidebarButtons ( ) ;
87
92
await dynamicFeatures . writerMode ( data ) ;
88
93
dynamicFeatures . navigation ( data ) ;
94
+ dynamicFeatures . interface ( data ) ;
89
95
90
96
// The Grok drawer appears dynamically, so we need to handle it here as well
91
97
// as in the static features module
0 commit comments