Skip to content

Commit

Permalink
Allow to accept null or undefined url
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jul 15, 2023
1 parent b22948a commit eea895f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webextensions/sidebar/components/TabElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ windowId = ${tab.windowId}
if (!this.initialized || !this.$TST)
return url;

if (url.startsWith('data:')) { // we don't need to use the helper for data: URI.
if (url && url.startsWith('data:')) { // we don't need to use the helper for data: URI.
this.favicon.src = url;
return url;
}
Expand Down

0 comments on commit eea895f

Please sign in to comment.