Skip to content

Commit b8c6445

Browse files
committed
fix: clicking on terminal lilnks opens a phoenix window instead of opening it up in browser
1 parent c2afe54 commit b8c6445

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/extensionsIntegrated/Terminal/TerminalInstance.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ define(function (require, exports, module) {
139139
this.searchAddon = new SearchAddon();
140140

141141
this.terminal.loadAddon(this.fitAddon);
142-
this.terminal.loadAddon(new WebLinksAddon());
142+
this.terminal.loadAddon(new WebLinksAddon(function (_event, uri) {
143+
Phoenix.app.openURLInDefaultBrowser(uri);
144+
}));
143145
this.terminal.loadAddon(this.searchAddon);
144146

145147
// Open terminal in DOM

0 commit comments

Comments
 (0)