diff --git a/js/global_scope_js.js b/js/global_scope_js.js index ebed1f3d..89b51d67 100644 --- a/js/global_scope_js.js +++ b/js/global_scope_js.js @@ -372,3 +372,18 @@ observer.observe(document.documentElement, { subtree: true, attributeFilter: ["style"] }); + +//------------------------------------------------ +// Suppress "Attempted to select a non-interactive or hidden tab" warning +//------------------------------------------------ +(function() { + const originalWarn = console.warn; + + console.warn = function(...args) { + if (args[0] && args[0].includes("Attempted to select a non-interactive or hidden tab")) { + return; + } + + originalWarn.apply(console, args); + }; +})();