Don't append akismet message twice
This commit is contained in:
parent
9ed56041e9
commit
0c29cec641
@ -22,7 +22,7 @@ async function register ({ registerHook, peertubeHelpers }) {
|
|||||||
ipMessage.innerHTML = htmlWarning
|
ipMessage.innerHTML = htmlWarning
|
||||||
ipMessage.style = 'margin: 10px 0; font-size: 0.9em;'
|
ipMessage.style = 'margin: 10px 0; font-size: 0.9em;'
|
||||||
|
|
||||||
if (document.querySelector(ipMessage.id)) return
|
if (document.getElementById(ipMessage.id)) return
|
||||||
|
|
||||||
document.querySelector('my-video-comment-add .textarea-wrapper').append(ipMessage)
|
document.querySelector('my-video-comment-add .textarea-wrapper').append(ipMessage)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user