File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -162,16 +162,21 @@ function showRating(problemTitle: string) {
162162// show the company tags if the user has enabled it in the settings
163163function showCompanyTags ( problemTitle : string ) {
164164 chrome . storage . local . get ( [ 'showCompanyTags' ] , ( result ) => {
165- if ( ! result . showCompanyTags ) {
166- return ;
167- }
168-
169165 // Check if we're on the description tab before proceeding
170166 const isDescriptionPage = ! window . location . href . includes ( '/solutions' ) ;
171167 if ( ! isDescriptionPage ) {
172168 return ;
173169 }
174170
171+ // Remove existing container if setting is disabled
172+ const existingContainer = document . getElementById ( 'companyTagContainer' ) ;
173+ if ( ! result . showCompanyTags ) {
174+ if ( existingContainer ) {
175+ existingContainer . remove ( ) ;
176+ }
177+ return ;
178+ }
179+
175180 // Try to find the description element with retries
176181 const maxRetries = 10 ;
177182 const baseDelay = 300 ;
You can’t perform that action at this time.
0 commit comments