Removed unused array.

This commit is contained in:
flash 2024-05-09 20:03:32 +00:00
parent 265c6e8e7f
commit 7bc229de28

View file

@ -271,14 +271,11 @@ Umi.UI.Messages = (function() {
Umi.UI.Emoticons.Parse(eText, msg); Umi.UI.Emoticons.Parse(eText, msg);
Umi.Parsing.Parse(eText, msg); Umi.Parsing.Parse(eText, msg);
const urls = [];
const textSplit = eText.innerText.split(' '); const textSplit = eText.innerText.split(' ');
for(const textPart of textSplit) { for(const textPart of textSplit) {
const uri = Umi.URI.Parse(textPart); const uri = Umi.URI.Parse(textPart);
if(uri !== null && uri.Slashes !== null) { 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>; const anchorElem = <a class="markup__link" href={textPart} target="_blank" rel="nofollow noreferrer noopener">{textPart}</a>;
eText.innerHTML = eText.innerHTML.replace(textPart.replace(/&/g, '&amp;'), anchorElem.outerHTML); eText.innerHTML = eText.innerHTML.replace(textPart.replace(/&/g, '&amp;'), anchorElem.outerHTML);
} }