fixes can't close share popups

see:
https://trello.com/c/eb8zD7zd/348-com-difficulty-closing-min-when-accessed-through-share-suspect-its-the-same-issue-as-before-with-the-spaw-perhaps-lost-in-merge