mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-03-19 20:04:39 +01:00
UI: Suppress "Attempted to select a non-interactive or hidden tab" warnings
This commit is contained in:
parent
cb8780a4ce
commit
d9eec31886
|
|
@ -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);
|
||||
};
|
||||
})();
|
||||
|
|
|
|||
Loading…
Reference in a new issue