@@ -189,17 +189,16 @@ async function main(): Promise<void> {
189189 getFromStorage ( storageKeys . language ) ,
190190 ] ) ;
191191
192- const fontSizeElement = document . documentElement ; // Or any specific element you want to change the font size of
193-
194192 // Load font size from storage
193+ let fontSizeElement = document . documentElement ; // Or any specific element you want to change the font size of
195194 chrome . storage . local . get ( 'fontSize' , function ( data ) {
196195 if ( data . fontSize ) {
197- fontSizeElement . style . setProperty ( '--dynamic-font-size' , `${ data . fontSize } px` ) ;
196+ fontSizeElement . style . setProperty ( '--dynamic-font-size' , `${ data . fontSize } px` ) ;
198197 if ( parseInt ( data . fontSize ) >= 18 ) {
199198 const width = ( parseInt ( data . fontSize ) * 24 + 200 ) ;
200199 document . body . style . width = `${ width + 20 } px` ;
201200 fixCodeContainer && ( fixCodeContainer . style . maxWidth = `${ width } px` ) ;
202- analyzeCodeResponse && ( analyzeCodeResponse . style . maxWidth = `${ width } px` ) ;
201+ analyzeCodeResponse && ( analyzeCodeResponse . style . maxWidth = `${ width } px` ) ;
203202 }
204203
205204 const sizes = document . getElementsByClassName ( 'material-button' ) ;
@@ -308,7 +307,7 @@ function handleError(error: Error): void {
308307
309308function displayLoginMessage ( ) : void {
310309 elements [ 'loginBtn' ] && elements [ 'loginBtn' ] . classList . remove ( 'hidden' ) ;
311- infoMessage && ( infoMessage . textContent = 'Log into ChatGPT in your chrome to get started' ) ;
310+ infoMessage && ( infoMessage . textContent = 'Log into ChatGPT in your browser to get started' ) ;
312311}
313312
314313function displayErrorMessage ( error : string ) : void {
0 commit comments