mirror of https://github.com/vector-im/riot-web
Merge pull request #10196 from vector-im/t3chguy/fix_vector_links
Fix Electron vector: linkspull/10247/head
commit
2e241fda2c
|
@ -36,7 +36,11 @@ function onWindowOrNavigate(ev, target) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function onLinkContextMenu(ev, params) {
|
function onLinkContextMenu(ev, params) {
|
||||||
const url = params.linkURL || params.srcURL;
|
let url = params.linkURL || params.srcURL;
|
||||||
|
|
||||||
|
if (url.startsWith('vector://vector/webapp')) {
|
||||||
|
url = "https://riot.im/app/" + url.substring(23);
|
||||||
|
}
|
||||||
|
|
||||||
const popupMenu = new Menu();
|
const popupMenu = new Menu();
|
||||||
// No point trying to open blob: URLs in an external browser: it ain't gonna work.
|
// No point trying to open blob: URLs in an external browser: it ain't gonna work.
|
||||||
|
|
Loading…
Reference in New Issue