Even if I emulate the user-agent of an iPhone, it needs me to run it from the homescreen.
- open developer tools, Toggle device toolbar, pick an iPhone dimension
- Network > More network conditions ("wifi" icon) > User-agent > Custom > "iPhone Safari"
- in Sources, set a breakpoint on the 1st line, refresh the page, when the debugger breaks, type "window.navigator.standalone = true" in the Console, and continue
- open developer tools, Toggle device toolbar, pick an iPhone dimension
- Network > More network conditions ("wifi" icon) > User-agent > Custom > "iPhone Safari"
- in Sources, set a breakpoint on the 1st line, refresh the page, when the debugger breaks, type "window.navigator.standalone = true" in the Console, and continue