Fix a bug after d9eec31886

This commit is contained in:
oobabooga 2025-08-28 19:48:16 -07:00
parent d9eec31886
commit 2720955478

View file

@ -380,7 +380,7 @@ observer.observe(document.documentElement, {
const originalWarn = console.warn;
console.warn = function(...args) {
if (args[0] && args[0].includes("Attempted to select a non-interactive or hidden tab")) {
if (args[0] && typeof args[0] === 'string' && args[0].includes("Attempted to select a non-interactive or hidden tab")) {
return;
}