Closed valencik closed 1 year ago
Previously we were only grabbing the first letter of the query string in the web worker.
I was looking at http://www.devdoc.net/web/developer.mozilla.org/en-US/docs/Web/API/Worker/onmessage.html
And it looks like e.data is the whole payload, so e.data[0] would be accessing the first element of the payload, in our case, the first character of the query string.
e.data
e.data[0]
Previously we were only grabbing the first letter of the query string in the web worker.
I was looking at http://www.devdoc.net/web/developer.mozilla.org/en-US/docs/Web/API/Worker/onmessage.html
And it looks like
e.data
is the whole payload, soe.data[0]
would be accessing the first element of the payload, in our case, the first character of the query string.