@@ -189,17 +189,16 @@ async function main(): Promise<void> {
189
189
getFromStorage ( storageKeys . language ) ,
190
190
] ) ;
191
191
192
- const fontSizeElement = document . documentElement ; // Or any specific element you want to change the font size of
193
-
194
192
// Load font size from storage
193
+ let fontSizeElement = document . documentElement ; // Or any specific element you want to change the font size of
195
194
chrome . storage . local . get ( 'fontSize' , function ( data ) {
196
195
if ( data . fontSize ) {
197
- fontSizeElement . style . setProperty ( '--dynamic-font-size' , `${ data . fontSize } px` ) ;
196
+ fontSizeElement . style . setProperty ( '--dynamic-font-size' , `${ data . fontSize } px` ) ;
198
197
if ( parseInt ( data . fontSize ) >= 18 ) {
199
198
const width = ( parseInt ( data . fontSize ) * 24 + 200 ) ;
200
199
document . body . style . width = `${ width + 20 } px` ;
201
200
fixCodeContainer && ( fixCodeContainer . style . maxWidth = `${ width } px` ) ;
202
- analyzeCodeResponse && ( analyzeCodeResponse . style . maxWidth = `${ width } px` ) ;
201
+ analyzeCodeResponse && ( analyzeCodeResponse . style . maxWidth = `${ width } px` ) ;
203
202
}
204
203
205
204
const sizes = document . getElementsByClassName ( 'material-button' ) ;
@@ -308,7 +307,7 @@ function handleError(error: Error): void {
308
307
309
308
function displayLoginMessage ( ) : void {
310
309
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' ) ;
312
311
}
313
312
314
313
function displayErrorMessage ( error : string ) : void {
0 commit comments