[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

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) ||