File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,12 @@ window.sync = {
4444 : chatgpt . isFullScreen ( ) )
4545 settings . save ( mode , state ) ; buttons . update . svg ( mode )
4646 if ( ! config . extensionDisabled && ! config [ `${ env . site } Disabled` ] ) { // tweak UI
47- if ( env . site == 'chatgpt' ) setTimeout ( ( ) => chatbar . tweak ( ) , // update inner width
48- mode == 'fullWindow' && config . widescreen && config . widerChatbox ?
49- 111 : 0 ) // delay if toggled to/from active WCB to avoid wrong width
50- else if ( env . site == 'poe' && config . widerChatbox ) styles . update ( { key : 'chatbar' } ) // sync Poe WCB
47+ if ( env . site == 'chatgpt' ) {
48+ if ( config . widerChatbox ) styles . update ( { key : 'chatbar' } )
49+ setTimeout ( ( ) => chatbar . tweak ( ) , // update inner width
50+ mode == 'fullWindow' && config . widescreen && config . widerChatbox ?
51+ 111 : 0 ) // delay if toggled to/from active WCB to avoid wrong width
52+ } else if ( env . site == 'poe' && config . widerChatbox ) styles . update ( { key : 'chatbar' } ) // sync Poe WCB
5153 notify ( `${ browserAPI . getMsg ( 'mode_' + mode ) } ${
5254 browserAPI . getMsg ( `state_${ state ? 'on' : 'off' } ` ) . toUpperCase ( ) } `)
5355 }
Original file line number Diff line number Diff line change @@ -44,10 +44,12 @@ window.sync = {
4444 : chatgpt . isFullScreen ( ) )
4545 settings . save ( mode , state ) ; buttons . update . svg ( mode )
4646 if ( ! config . extensionDisabled && ! config [ `${ env . site } Disabled` ] ) { // tweak UI
47- if ( env . site == 'chatgpt' ) setTimeout ( ( ) => chatbar . tweak ( ) , // update inner width
48- mode == 'fullWindow' && config . widescreen && config . widerChatbox ?
49- 111 : 0 ) // delay if toggled to/from active WCB to avoid wrong width
50- else if ( env . site == 'poe' && config . widerChatbox ) styles . update ( { key : 'chatbar' } ) // sync Poe WCB
47+ if ( env . site == 'chatgpt' ) {
48+ if ( config . widerChatbox ) styles . update ( { key : 'chatbar' } )
49+ setTimeout ( ( ) => chatbar . tweak ( ) , // update inner width
50+ mode == 'fullWindow' && config . widescreen && config . widerChatbox ?
51+ 111 : 0 ) // delay if toggled to/from active WCB to avoid wrong width
52+ } else if ( env . site == 'poe' && config . widerChatbox ) styles . update ( { key : 'chatbar' } ) // sync Poe WCB
5153 notify ( `${ browserAPI . getMsg ( 'mode_' + mode ) } ${
5254 browserAPI . getMsg ( `state_${ state ? 'on' : 'off' } ` ) . toUpperCase ( ) } `)
5355 }
You can’t perform that action at this time.
0 commit comments