Restore the correct domain before calling the user callback
Merge pull request #183 from qraynaud/master

Restore the correct domain before calling the user callback