Removing check for origin of event. This shouldn't be done on the window object. See #742