File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
browser/components/smartwindow/content Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ <h4 id="toggle-insights-popover-title">Insights</h4>
109109 >
110110 </ p >
111111 < div class ="toggle-insights-switch-row ">
112- < span > On</ span >
112+ < span id =" toggle-insights-text " > On</ span >
113113 < button
114114 id ="toggle-insights-switch "
115115 role ="switch "
Original file line number Diff line number Diff line change @@ -2358,6 +2358,7 @@ class SmartWindowPage {
23582358 const closeBtn = document . getElementById (
23592359 this . isSidebarMode ? "toggle-insights-back" : "toggle-insights-close"
23602360 ) ;
2361+ const txt = document . getElementById ( 'toggle-insights-text' )
23612362 const sw = document . getElementById ( "toggle-insights-switch" ) ;
23622363
23632364 if ( ! btn || ! pop || ! sw ) {
@@ -2380,6 +2381,7 @@ class SmartWindowPage {
23802381 this . useInsightsState = val ;
23812382 this . applyInsightsToChat ( ) ;
23822383 sw . setAttribute ( "aria-checked" , String ( val ) ) ;
2384+ txt . innerText = val ? "On" : "Off" ;
23832385 sw . classList . toggle ( "on" , val ) ;
23842386 } ;
23852387
You can’t perform that action at this time.
0 commit comments