Skip to content

Commit

Permalink
Don't filter external links by protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
eanders-ms committed Mar 27, 2017
1 parent 3708cf6 commit 5f57eb5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/client/hyperlinkHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ import * as log from './log';
export function navigate(url: string) {
try {
const parsed = URL.parse(url);
if (parsed.protocol === 'http:' || parsed.protocol === 'https:') {
shell.openExternal(url, { activate: true });
} else if (parsed.protocol === "emulator:") {
if (parsed.protocol === "emulator:") {
const params = QueryString.parse(parsed.query);
if (parsed.host === 'inspect') {
navigateInspectUrl(params);
Expand All @@ -58,7 +56,7 @@ export function navigate(url: string) {
navigateCommandUrl(params);
}
} else {
// Ignore
shell.openExternal(url, { activate: true });
}
} catch (e) {
log.error(e.message);
Expand Down

0 comments on commit 5f57eb5

Please sign in to comment.