[JS] Fixed TypeError: textValue is null

This commit is contained in:
Eugene Molotov 2020-12-18 07:51:33 +05:00
parent c302bca1e6
commit 2ddd357a62
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ function search() {
}
if(textValue != null || uriValue != null) {
if(textValue != null && uriValue != null) {
if(textValue.match(regexMatch) != null ||
uriValue.hostname.match(regexMatch) ||