Skip to content

Commit

Permalink
Merge pull request #26962 from brave/pr26673_tb-extra-error_1.74.x
Browse files Browse the repository at this point in the history
[Toolbar]: Fix console error (uplift to 1.74.x)
  • Loading branch information
LaurenWags authored Dec 10, 2024
2 parents 37f9603 + 4a66ff9 commit c4a2c55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/webui/resources/br_elements/br_toolbar/br_toolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export class CrToolbarElement extends CrLitElement {
initSlotFilledDetection() {
// Style the 'extra items' slot only if it contains
// content.
const toolbarExtraElement = this.querySelector('.toolbar-extra')
const toolbarExtraElement = this.shadowRoot!.querySelector('.toolbar-extra')
if (!toolbarExtraElement) {
console.error('Could not find "toolbar-extra" element')
return
Expand Down

0 comments on commit c4a2c55

Please sign in to comment.