mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1176381 - Fix a typo in SearchSuggestionController that causes a JS warning. r=MattN
This commit is contained in:
parent
db1e76d354
commit
1a78a117d9
@ -128,7 +128,7 @@ this.SearchSuggestionController.prototype = {
|
||||
if (!this.maxLocalResults && !this.maxRemoteResults) {
|
||||
throw new Error("Zero results expected, what are you trying to do?");
|
||||
}
|
||||
if (this.maxLocalResults < 0 || this.remoteResult < 0) {
|
||||
if (this.maxLocalResults < 0 || this.maxRemoteResults < 0) {
|
||||
throw new Error("Number of requested results must be positive");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user