Alright, so I have a game in React. When the user losers in this game, a new window pops up.
const lossWindow = window.open(
"",
"",
"width=500, height=300, top=200, left = 200"
);
lossWindow.document.write(
'<img style = "width: 40%" src = "https://dennismarkham.github.io/week-4-game/assets/images/redx.png"><p>OH NOES, YOU ARE TEH LOOS!!!</p>'
);
This works fine on my laptop and PC, but when I try to play the game on my iPhone with the Safari browser, the loss produces an error which says "null is not an object (evaluating 'lossWindow.document'). Why would this be?