function isStandalone() {
	let window = getWindow();
	if (!window) return false;

	return window.matchMedia && window.matchMedia('(display-mode: standalone)').matches && true ||
            window.navigator && window.navigator.standalone === true || false;
}
/**
 * Returns true if the application is running as an installed PWA.
 *
 * @example
 * let isStandalone = isStandAlone();
 *
 */
Returns true if the application is running as an installed PWA.
@example
let isStandalone = isStandAlone().
Returns true if the application is running as an installed PWA . @example let isStandalone = isStandAlone () .
function isStandalone() {
	let window = getWindow();
	if (!window) return false;
	return window.matchMedia && window.matchMedia('(display-mode: standalone)').matches && true ||
            window.navigator && window.navigator.standalone === true || false;
}
function isStandalone ( ) { let window = getWindow ( ) ; if ( ! window ) return false ; return window . matchMedia && window . matchMedia ( '(display-mode: standalone)' ) . matches && true || window . navigator && window . navigator . standalone === true || false ; }
Returns true if the application is running as an installed PWA.
Returns true if the application is running as an installed PWA .