backport riot-desktop implementation into riot-web
This commit is contained in:
parent
09ed0e781a
commit
bb6afd7c30
4 changed files with 66 additions and 3 deletions
|
@ -174,8 +174,10 @@ function onEditableContextMenu(ev, params) {
|
|||
|
||||
module.exports = (webContents) => {
|
||||
webContents.on('new-window', onWindowOrNavigate);
|
||||
// XXX: https://github.com/vector-im/riot-web/issues/8247
|
||||
// webContents.on('will-navigate', onWindowOrNavigate);
|
||||
webContents.on('will-navigate', (ev, target) => {
|
||||
if (target.startsWith("vector://")) return;
|
||||
return onWindowOrNavigate(ev, target);
|
||||
});
|
||||
|
||||
webContents.on('context-menu', function(ev, params) {
|
||||
if (params.linkURL || params.srcURL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue