src/util/getMaxSimultaneousRequests.js
/**
 * Checks if cornerstoneTools is operating on a mobile device.
 * @export @public @method
 * @name isMobileDevice
 *
 * @returns {boolean} True if running on a mobile device.
 */
Checks if cornerstoneTools is operating on a mobile device.
@export @public @method
@name isMobileDevice

@returns {boolean} True if running on a mobile device.
Checks if cornerstoneTools is operating on a mobile device . @export @public @method @name isMobileDevice @returns { boolean } True if running on a mobile device .
function isMobileDevice() {
  const pattern = new RegExp(
    'Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini'
  );
  return pattern.test(navigator.userAgent);
}
function isMobileDevice ( ) { const pattern = new RegExp ( 'Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini' ) ; return pattern . test ( navigator . userAgent ) ; }
Checks if cornerstoneTools is operating on a mobile device.
Checks if cornerstoneTools is operating on a mobile device .