Преглед изворни кода

fix: `auto_scroll_bottom` setting don't work

wangweimin пре 4 година
родитељ
комит
639425d74b
1 измењених фајлова са 1 додато и 1 уклоњено
  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);