With the launch of the iPhone X imminent, I'm trying to get ahead of the game and prepare some of my web applications to handle any design changes - the biggest of which being the new "notch" which houses the front camera.
I was wondering whether there is, or likely to be, any way of detecting this in Javascript somehow.
Interestingly, Chris Coyier has written an article about The "Notch" and CSS which led me to discover the safe-area-inset-right constant. Is there any way this can be accessed in Javascript and is this a reliable test.
if (window.constant.safeAreaInsetRight) {
var notch = true;
}
