Skip to content

Commit

Permalink
fix: meta tags didn't overwrite correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Nov 8, 2023
1 parent b7d151a commit 8014ec5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions solara/components/head_tag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module.exports = {
const tags = window._solaraHeadTags[this.key];
let deepestTag = tags[0];
for (let i = 1; i < tags.length; i++) {
if (tags[i].level > deepestTitle.level) {
if (tags[i].level > deepestTag.level) {
deepestTag = tags[i];
}
}
Expand All @@ -46,8 +46,8 @@ module.exports = {
document.head.appendChild(el);
} else {
el.innerHTML = '';
for (let i = 0; i < el.attributes.length; i++) {
el.removeAttribute(el.attributes[i].name);
while (el.attributes.length > 0) {
el.removeAttribute(el.attributes[0].name);
}
}
Object.keys(deepestTag.attributes).forEach((key) => {
Expand Down

0 comments on commit 8014ec5

Please sign in to comment.