Explorar el Código

add error handling

utsushiiro hace 7 años
padre
commit
d7f81c363d
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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 => {
   connection.promise.then(parent => {
     window.growi = parent;
     window.growi = parent;
+  }).catch(err => {
+    console.log(err);
   });
   });
 }
 }