Skip to content

Commit 93c9bd8

Browse files
committed
Update sidebar tabs correctly when notified update has no updatedProperties
1 parent 7c45492 commit 93c9bd8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

webextensions/sidebar/sidebar-tabs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ function tryApplyUpdate(update) {
835835
if (!tab)
836836
return;
837837

838-
const highlightedChanged = 'highlighted' in update.updatedProperties;
838+
const highlightedChanged = update.updatedProperties && 'highlighted' in update.updatedProperties;
839839

840840
if (update.updatedProperties) {
841841
for (const key of Object.keys(update.updatedProperties)) {

0 commit comments

Comments
 (0)