fixed indexofmsg variable to null

This commit is contained in:
Justin 2023-07-08 01:11:19 +08:00 committed by GitHub
parent 30d4d624d2
commit 8d98c1b688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2761,7 +2761,7 @@ function setTop20() {
}
let theIndexOfMsg = 0
let theIndexOfMsg = null
// get custom message values
function getCustomMsg(value) {
@ -2812,6 +2812,7 @@ function updateSelectedMsg(){
const ulElement = document.getElementById("messages-features");
const activeListItem = ulElement.querySelector("li.active");
activeListItem.innerText = msg_name;
theIndexOfMsg = null;
document.getElementById('updated-message-p').style.display = "block";
setTimeout(function hideElement() {
document.getElementById('updated-message-p').style.display = "none";