Browse Source

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

Lucas Nogueira 4 năm trước cách đây
mục cha
commit
9ddd9a97ed

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
examples/api/public/build/bundle.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 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() {

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác