Sorry, I don't get your point.

The reason I use window is because it uses originally. And MessageManager uses onHashChange event to handle page transition.