浏览代码

fix(examples): api shell example promise catch [skip ci]

Lucas Nogueira 4 年之前
父节点
当前提交
9ddd9a97ed

文件差异内容过多而无法显示
+ 0 - 0
examples/api/public/build/bundle.js


文件差异内容过多而无法显示
+ 0 - 0
examples/api/public/build/bundle.js.map


+ 1 - 1
examples/api/src/components/Shell.svelte

@@ -43,7 +43,7 @@
   }
 
   function kill() {
-    child.kill().then(() => onMessage('killed child process')).error(onMessage)
+    child.kill().then(() => onMessage('killed child process')).catch(onMessage)
   }
 
   function writeToStdin() {

部分文件因为文件数量过多而无法显示