File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 148
148
// @description :zu Yengeza izimpendulo ze-AI ku-Brave Search (inikwa amandla yi-GPT-4o!)
149
149
// @author KudoAI
150
150
// @namespace https://kudoai.com
151
- // @version 2025.1.15
151
+ // @version 2025.1.15.1
152
152
// @license MIT
153
153
// @icon https://assets.bravegpt.com/images/icons/bravegpt/icon48.png?v=df624b0
154
154
// @icon 64 https://assets.bravegpt.com/images/icons/bravegpt/icon64.png?v=df624b0
2365
2365
2366
2366
bylineVisibility ( ) {
2367
2367
if ( env . browser . isPhone ) return // since byline hidden by app.styles
2368
- const headerElems = {
2368
+
2369
+ // Init header elems
2370
+ const headerElems = { byline : appDiv . querySelector ( '.kudoai' ) }
2371
+ if ( ! headerElems . byline ) return // since in loading state
2372
+ Object . assign ( headerElems , {
2369
2373
btns : appDiv . querySelectorAll ( '[id$=-header-btns] > btn' ) ,
2370
- byline : appDiv . querySelector ( '.kudoai' ) ,
2371
2374
logo : appDiv . querySelector ( `#${ app . cssPrefix } -logo` )
2372
- }
2373
- const appDivStyle = getComputedStyle ( appDiv )
2374
- const forceDisplayStyles = 'position: absolute; visibility: hidden; display: block;'
2375
+ } )
2375
2376
2376
2377
// Calc/store widths of app/x-padding + header elems
2378
+ const appDivStyle = getComputedStyle ( appDiv )
2379
+ const forceDisplayStyles = 'position: absolute; visibility: hidden; display: block;'
2377
2380
const widths = {
2378
2381
appDiv : appDiv . getBoundingClientRect ( ) . width ,
2379
2382
appDivXpadding : parseFloat ( appDivStyle . paddingLeft ) + parseFloat ( appDivStyle . paddingRight )
You can’t perform that action at this time.
0 commit comments