浏览代码

Merge pull request #734 from weseek/fix/add-error-handling

Imprv/add error handling
Yuki Takei 7 年之前
父节点
当前提交
d7a1d0b617
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/client/js/hackmd-agent.js

+ 2 - 0
src/client/js/hackmd-agent.js

@@ -122,6 +122,8 @@ function connectToParentWithPenpal() {
   });
   connection.promise.then(parent => {
     window.growi = parent;
+  }).catch(err => {
+    console.log(err);
   });
 }