Removed unused array.
This commit is contained in:
parent
265c6e8e7f
commit
7bc229de28
1 changed files with 0 additions and 3 deletions
|
@ -271,14 +271,11 @@ Umi.UI.Messages = (function() {
|
|||
Umi.UI.Emoticons.Parse(eText, msg);
|
||||
Umi.Parsing.Parse(eText, msg);
|
||||
|
||||
const urls = [];
|
||||
const textSplit = eText.innerText.split(' ');
|
||||
for(const textPart of textSplit) {
|
||||
const uri = Umi.URI.Parse(textPart);
|
||||
|
||||
if(uri !== null && uri.Slashes !== null) {
|
||||
urls.push(textPart);
|
||||
|
||||
const anchorElem = <a class="markup__link" href={textPart} target="_blank" rel="nofollow noreferrer noopener">{textPart}</a>;
|
||||
eText.innerHTML = eText.innerHTML.replace(textPart.replace(/&/g, '&'), anchorElem.outerHTML);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue