Closed win-ly closed 1 month ago
I just want to add this happens with plain old HTML/JS as well. The window.Userback object is not initialized when script element's onload
handler is fired.
This is due to the whole widget code was made async. It should be fixed now.
Suddenly I found that the project's Userback didn't work and threw an error. I checked my code and didn't make any changes recently. So I checked the official documentation again and used the official examples to test and found that the same error was thrown.
After investigation, we found that the init method should be executed before the userback script is loaded. So how can we avoid this?