Fix #88, make it work with portalling to child DOM windows
I've been using this code for a while in my app and it works well. See discussion in #88
Just noticed your other PR #89 which has a quite big diff. Please choose one that suits better and close the other.
This issue has been marked as "stale" because there has been no activity for 2 months. If you have any new information or would like to continue the discussion, please feel free to do so. If this issue got buried among other tasks, maybe this message will reignite the conversation. Otherwise, this issue will be closed in 7 days. Thank you for your contributions so far.
This issue is still relevant