'standalone' in window.navigator will always be true, though. On iPhones, the property is always there, it is just whether or not it is true.