use var instead of const

In layout.js. use var instead of const/let. because consts or let keywords are
not been supported in legacy client
This commit is contained in:
Nuwan 2024-10-22 22:11:39 +05:30
parent 8718ac4588
commit 79ba0ebc70
1 changed files with 2 additions and 2 deletions

View File

@ -740,8 +740,8 @@
}
function isTextMessageInUrl() {
const hash = context.location.hash;
const regexp = /\S+\/text-message\/d1=/
var hash = context.location.hash;
var regexp = /\S+\/text-message\/d1=/
return regexp.test(hash);
}