Permalink
Browse files

Add dialog to reload on service crash

  • Loading branch information...
dannyqiu committed Oct 30, 2017
1 parent a1506a8 commit 259d40c6aa150453671008a483754cb16d1da999
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/models/Service.js
@@ -112,6 +112,16 @@ export default class Service {
frameName,
options,
}));
this.webview.addEventListener('crashed', (e) => {
console.log(e);
let reload = confirm('Service crashed. Reload?');
if (reload) {
store.actions.service.reload({
serviceId: this.id
});
}
});
}
initializeWebViewListener() {

0 comments on commit 259d40c

Please sign in to comment.