Skip to content

Commit

Permalink
fix a problem of new-tab ipc handler
Browse files Browse the repository at this point in the history
  • Loading branch information
qazbnm456 committed Jun 28, 2017
1 parent 0fc3cc4 commit edfbe26
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/js/constants/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ export default {
lulumiPreloadPath: `${lulumiHelperPath}/preload`,
lulumiPagesPath: `${lulumiHelperPath}/pages`,
lulumiPDFJSPath: `${lulumiHelperPath}/pdfjs`,
lulumiRev: '632d225bce502389e4b10f60a97bc14e3bd98a8c',
lulumiRev: '0fc3cc40e636d4271cafdc48180f6e37d8943d04',
};
6 changes: 5 additions & 1 deletion src/renderer/components/BrowserMainView/Tabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@
});
ipc.on('new-tab', (event, payload) => {
if (this.$parent.onNewTab) {
this.$parent.onNewTab(payload.location, payload.follow);
if (payload) {
this.$parent.onNewTab(payload.location, payload.follow);
} else {
this.$parent.onNewTab();
}
}
});
ipc.on('tab-close', () => {
Expand Down

0 comments on commit edfbe26

Please sign in to comment.