Skip to content

Commit

Permalink
fix: the banner could have multiple duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
ReeceM committed Feb 15, 2020
1 parent 1619836 commit 176e82e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ const hBar = {
.then(json => {
if (typeof json == "object") {
this.normaliseResponse(json[0]);
if (this.postTitle == "undefined" || this.postTitle == undefined) {
return;
}
this.render();
}
});
Expand Down Expand Up @@ -74,6 +77,7 @@ const hBar = {
children: [postElement, secondaryElement]
})

document.getElementById('h-bar').innerHTML = ""
document.getElementById('h-bar').appendChild(_hbar)
})
},
Expand Down

0 comments on commit 176e82e

Please sign in to comment.