Open shiryz opened 5 years ago
https://github.com/facn5/NodeJs-AutoComplete/blob/master/frontend/scripts/xhr.js#L33
You can send words as input to your callback cb: cb(words) and change your call to the following connectToBase(this.value, (words) => {
cb(words)
connectToBase(this.value, (words) => {
https://github.com/facn5/NodeJs-AutoComplete/blob/master/frontend/scripts/xhr.js#L33
You can send words as input to your callback cb:
cb(words)
and change your call to the followingconnectToBase(this.value, (words) => {