try to fix

master
Aevann1 2022-08-26 01:34:20 +02:00
parent 54a5357136
commit 432f90b8d8
2 changed files with 3 additions and 3 deletions

View File

@ -109,8 +109,8 @@ function send() {
function quote(t) {
text = t.previousElementSibling.innerHTML.replace(/>/g, "> ").replace(/\n/g, "\n> ").replace(/\*/g,"\\*")
let username
try {username = t.parentElement.previousElementSibling.innerHTML}
catch(e) {username = t.parentElement.parentElement.previousElementSibling.innerHTML}
try {username = t.parentElement.previousElementSibling.previousElementSibling.innerHTML}
catch(e) {username = t.parentElement.parentElement.previousElementSibling.previousElementSibling.innerHTML}
textbox.value = '> ' + text + '\n@' + username + ' '
textbox.focus()
autoExpand(textbox);

View File

@ -209,6 +209,6 @@
<script src="{{asset('js/lozad.js')}}"></script>
<script src="/assets/js/lite-youtube.js?v=241"></script>
<script src="/chat.js?v=3022"></script>
<script src="/chat.js?v=3023"></script>
</body>