Hi guys, I am trying to determine if the jquerymobile application works as an APP (for example, from the main screen). My current code is:
if (window.navigator.standalone) Data.isRunningAsApp = true;
The problem is that I heard that this code better matches this
if (("standalone" in window.navigator) && !window.navigator.standalone) {}
I get what the first segment does (testing - this property exists), but I do not understand the second segment. (In terms of syntax, I thought I did, but it seems contradictory to me!)
source share