Reputation: 215
Editing for obvious reasons.
As you can see, I have no idea what to pass in for the cb parameter in the tasker.login function. I've looked up how Callbacks work, but it does not make sense to me in this context how to use it. Any tips/advice would be helpful! Thanks!
Upvotes: 2
Views: 93
Reputation: 1345
Logging in won't be instant, so any code that you want to execute once the login has completed should be a function passed as the cb
argument. Perhaps you want to remove a loader image that you placed on when you started logging in, or something similar.
Upvotes: 1