mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 746499 - Links in the GCLI output area should open in new window (not in the output area); r=dcamp
This commit is contained in:
parent
6c4390fb86
commit
ced5a9ebe3
@ -6097,6 +6097,12 @@ Output.prototype.toDom = function(element) {
|
|||||||
util.setContents(node, output.toString());
|
util.setContents(node, output.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Make sure that links open in a new window.
|
||||||
|
var links = node.querySelectorAll('*[href]');
|
||||||
|
for (var i = 0; i < links.length; i++) {
|
||||||
|
links[i].setAttribute('target', '_blank');
|
||||||
|
}
|
||||||
|
|
||||||
element.appendChild(node);
|
element.appendChild(node);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user