connection, isMobileDevice() function