fix react native crash
fix react native crash

globalwindow exists in react native but it doesn't have the addEventListener method
i didn't research why the object exists nor what it is exactly
phoenixframework/phoenix,Gazler/phoenix,optikfluffel/phoenix,nshafer/phoenix,keathley/phoenix,0x00evil/phoenix,0x00evil/phoenix,rafbgarcia/phoenix,eksperimental/phoenix,jwarwick/phoenix,rafbgarcia/phoenix,Gazler/phoenix,0x00evil/phoenix,michalmuskala/phoenix,keathley/phoenix,nshafer/phoenix,phoenixframework/phoenix,jwarwick/phoenix,rafbgarcia/phoenix,optikfluffel/phoenix,optikfluffel/phoenix,michalmuskala/phoenix,phoenixframework/phoenix,nshafer/phoenix,eksperimental/phoenix