Skip to content

Commit

Permalink
feat(Todos): Allow todos to open links in browser
Browse files Browse the repository at this point in the history
  • Loading branch information
adlk committed Sep 27, 2019
1 parent 9180318 commit 5ba6723
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/features/todos/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ export default class TodoStore extends FeatureStore {
theme: isDarkThemeActive ? ThemeType.dark : ThemeType.default,
},
});

this.webview.addEventListener('new-window', ({ url }) => {
this.actions.app.openExternalUrl({ url });
});
};

_goToService = ({ url, serviceId }) => {
Expand Down

0 comments on commit 5ba6723

Please sign in to comment.