Skip to content

Commit

Permalink
Merge pull request #11 from C0ntroller/master
Browse files Browse the repository at this point in the history
Fix error for new_item in non-English config
  • Loading branch information
Villhellm authored Jul 27, 2020
2 parents 2ae0262 + ff7d647 commit 37e7338
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/custom-sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ function createItem(elements, item) {
function getConfigurationElement(elements) {
for (var i = 0; i < elements.children.length; i++) {
if (elements.children[i].tagName == "A") {
var current = elements.children[i].children[0].getElementsByTagName("span")[0].innerHTML;
if (current == "<!---->Configuration<!---->") {
var current = elements.children[i].getAttribute("data-panel");
if (current == "config") {
return elements.children[i];
}
}
Expand Down

0 comments on commit 37e7338

Please sign in to comment.