Browse Source

add error handling

utsushiiro 7 years ago
parent
commit
d7f81c363d
1 changed files with 2 additions and 0 deletions
  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);
   });
 }