[JS] Fixed TypeError: textValue is null
This commit is contained in:
parent
c302bca1e6
commit
2ddd357a62
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ function search() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(textValue != null || uriValue != null) {
|
if(textValue != null && uriValue != null) {
|
||||||
|
|
||||||
if(textValue.match(regexMatch) != null ||
|
if(textValue.match(regexMatch) != null ||
|
||||||
uriValue.hostname.match(regexMatch) ||
|
uriValue.hostname.match(regexMatch) ||
|
||||||
|
|
Loading…
Reference in a new issue