Skip to content

Commit

Permalink
[JS] Fixed TypeError: textValue is null
Browse files Browse the repository at this point in the history
  • Loading branch information
em92 committed Dec 18, 2020
1 parent c302bca commit 2ddd357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) ||
Expand Down

0 comments on commit 2ddd357

Please sign in to comment.