File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 148
148
// @description :zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
149
149
// @author KudoAI
150
150
// @namespace https://kudoai.com
151
- // @version 2025.1.4.2
151
+ // @version 2025.1.4.3
152
152
// @license MIT
153
153
// @icon https://media.ddgpt.com/images/icons/duckduckgpt/icon48.png?af89302
154
154
// @icon 64 https://media.ddgpt.com/images/icons/duckduckgpt/icon64.png?af89302
2781
2781
settings . save ( 'anchored' , false )
2782
2782
if ( config . expanded ) toggle . expandedMode ( 'off' )
2783
2783
}
2784
+ if ( prevState == config . anchored ) return
2784
2785
2785
- // Apply new state to UI
2786
+ // Apply changed state to UI
2786
2787
appDiv . classList [ config . anchored ? 'add' : 'remove' ] ( 'anchored' )
2787
2788
update . rqVisibility ( ) ; update . answerPreMaxHeight ( ) ; update . bylineVisibility ( ) ; update . chatbarWidth ( )
2788
2789
if ( modals . settings . get ( ) ) { // update visual state of Settings toggle
2789
2790
const anchorToggle = document . querySelector ( '[id*=anchor][id*=menu-entry] input' )
2790
2791
if ( anchorToggle . checked != config . anchored ) modals . settings . toggle . switch ( anchorToggle )
2791
2792
}
2792
- if ( prevState != config . anchored ) {
2793
- menus . pin . topPos = menus . pin . rightPos = null
2794
- notify ( `${ app . msgs . mode_anchor } ${ menu . state . words [ + config . anchored ] } ` )
2795
- }
2793
+ menus . pin . topPos = menus . pin . rightPos = null
2794
+ notify ( `${ app . msgs . mode_anchor } ${ menu . state . words [ + config . anchored ] } ` )
2796
2795
} ,
2797
2796
2798
2797
animations ( layer ) {
You can’t perform that action at this time.
0 commit comments