Detect share success

Calls the handler, when the hooking window is closed.

1
2
3
4
window._goodshare.setShareCallback(function() {
  console.log(arguments);
  // some logic for handling share events
});

For more info, see Issue #57.