Skip to content

Commit

Permalink
fix(w3c/headers): don't crash if .head details doesn't exist (#4726)
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi authored Jun 5, 2024
1 parent 8baa4c0 commit cd5cd7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/w3c/templates/headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export default (conf, options) => {
*/
sub("beforesave", doc => {
const details = doc.querySelector(".head details");
details.open = true;
if (details) details.open = true;
});
return html`<div class="head">
${conf.logos.length
Expand Down

0 comments on commit cd5cd7a

Please sign in to comment.