don't try to do preview URLs of matrix IDs (yet :D)
This commit is contained in:
parent
4b1ff51a42
commit
92f58b6927
1 changed files with 4 additions and 1 deletions
|
@ -84,7 +84,10 @@ module.exports = React.createClass({
|
||||||
findLink: function(nodes) {
|
findLink: function(nodes) {
|
||||||
for (var i = 0; i < nodes.length; i++) {
|
for (var i = 0; i < nodes.length; i++) {
|
||||||
var node = nodes[i];
|
var node = nodes[i];
|
||||||
if (node.tagName === "A" && node.getAttribute("href")) {
|
if (node.tagName === "A" && node.getAttribute("href") &&
|
||||||
|
(node.getAttribute("href").startsWith("http://") ||
|
||||||
|
node.getAttribute("href").startsWith("https://")))
|
||||||
|
{
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
else if (node.children && node.children.length) {
|
else if (node.children && node.children.length) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue