Skip to content

Commit

Permalink
Add dialog to reload on service crash
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyqiu committed Oct 30, 2017
1 parent a1506a8 commit 259d40c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/models/Service.js
Expand Up @@ -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() {
Expand Down

0 comments on commit 259d40c

Please sign in to comment.