Skip to content

Commit

Permalink
Handle blocking of opening of new tab
Browse files Browse the repository at this point in the history
Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
  • Loading branch information
mmorhun authored and benoitf committed Jun 20, 2018
1 parent 63d18c4 commit 9e37f6a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ export class HostedPluginManagerClient {
this.pluginInstanceUri = uri;
if (!isNative) {
// Open a new tab in case of browser
this.windowService.openNewWindow(uri);
try {
this.windowService.openNewWindow(uri);
} catch (err) {
this.messageService.warn('Your browser prevented opening of new tab. You can do it manually: ' + uri);
}
}
}

Expand Down

0 comments on commit 9e37f6a

Please sign in to comment.