Skip to content

Commit

Permalink
Remove console warning for missing data-block-sel attribute
Browse files Browse the repository at this point in the history
This printed out warnings for non-setting sections
  • Loading branch information
MxtOUT committed Aug 4, 2019
1 parent 331b2f4 commit 307b8fd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions js/options/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,7 @@ class Sidebar {

// Only create subentries for the settings
let sections = block.querySelectorAll(".settings .content_section");
if (sections.length === 0) {
console.warn("Missing data-block-sel attribute on sidebar entry", block);
return;
}
if (sections.length === 0) return;

row.classList.add(row.classList.contains("selected") ? "expanded" : "collapsed");

Expand Down

0 comments on commit 307b8fd

Please sign in to comment.