mirror of
https://github.com/zen-browser/desktop.git
synced 2026-02-09 21:38:42 +00:00
fix: Use optional chaining and nullish coalescing in resetButton, p=#12300
Signed-off-by: Roman <58283566+rmdeuce@users.noreply.github.com>
This commit is contained in:
@@ -242,7 +242,7 @@ export class nsZenFolder extends MozTabbrowserTabGroup {
|
||||
}
|
||||
|
||||
get resetButton() {
|
||||
return this.labelElement.parentElement.querySelector(".tab-reset-button");
|
||||
return this.labelElement.parentElement?.querySelector(".tab-reset-button") ?? null;
|
||||
}
|
||||
|
||||
unloadAllTabs(event) {
|
||||
|
||||
Reference in New Issue
Block a user