Whenever we click on the cancel/finish button below function is called and we know the screen is closed.
kite.finished(function(status, request_token) { alert("Finished. Status is " + status); });
If the window is not closing with the cancel/finish button. If the user is closing directly the window screen. then how can we know whether the user is executing a stock or not.
finished
callback. We will add this in our official publisher soon.