Skip to content

Commit

Permalink
Allow opening a general link through ko.help.op
Browse files Browse the repository at this point in the history
  • Loading branch information
th3coop committed Dec 20, 2019
1 parent bff15da commit d49509b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/chrome/komodo/content/launch.p.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ function openHelp(topic, path = 'manual/')
* @param {String} page A page tag as defined in toc.xml
*/
this.open = function(page, path) {
openHelp(page, path);
if (page && page.search(/http(?:s*)/i) != -1)
ko.browse.openUrlInDefaultBrowser(page);
else
openHelp(page, path);
}

/**
Expand Down

0 comments on commit d49509b

Please sign in to comment.