瀏覽代碼

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() {
   function kill() {
-    child.kill().then(() => onMessage('killed child process')).error(onMessage)
+    child.kill().then(() => onMessage('killed child process')).catch(onMessage)
   }
   }
 
 
   function writeToStdin() {
   function writeToStdin() {

部分文件因文件數量過多而無法顯示