<script type="text/javascript">
if(navigator.standalone || (window.matchMedia('(display-mode: standalone)').matches)){
alert(navigator.standalone)
alert(window.matchMedia('(display-mode: standalone)').matches)
$('body').addClass('webapp')
}
</script>