Explorar o código

fix: `auto_scroll_bottom` setting don't work

wangweimin %!s(int64=4) %!d(string=hai) anos
pai
achega
639425d74b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      webiojs/src/handlers/output.ts

+ 1 - 1
webiojs/src/handlers/output.ts

@@ -45,7 +45,7 @@ export class OutputHandler implements CommandHandler {
             if (container_elem.length === 0)
                 return console.error(`Scope '${msg.spec.scope}' not found`);
 
-            if (!msg.spec.scope || msg.spec.scope === 'pywebio-scope-ROOT') output_to_root = true;
+            if (!msg.spec.scope || msg.spec.scope === '#pywebio-scope-ROOT') output_to_root = true;
 
             if (msg.spec.position === 0)
                 container_elem.prepend(elem);