How can I inspect the window object for mobile safari?
Or more specifically window.navigator - trying to convert to string doesn't work and I can't explore it within the console either.
Thanks!
EDIT:
console.log(window.navigator);
console.log(String(window.navigator));
console.log(JSON.stringify(window.navigator));
console.log(window.navigator.serialize());
Also tried sending all these variations over the socket to the server and logging them there.
Output is either [object Navigator]
, "{}"
, or nothing
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…