From 307b8fd787df23f03702f9493c566d61a2ae997c Mon Sep 17 00:00:00 2001 From: MxtOUT <14999077+MxtOUT@users.noreply.github.com> Date: Sun, 4 Aug 2019 23:26:46 +0200 Subject: [PATCH] Remove console warning for missing data-block-sel attribute This printed out warnings for non-setting sections --- js/options/options.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/js/options/options.js b/js/options/options.js index bc711654b..9d12d8a71 100644 --- a/js/options/options.js +++ b/js/options/options.js @@ -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");