Sha256: c15ad7f9bf82d694d31bf9987ab59bb489ea0d052cca7564a480f408d01cfced

Contents?: true

Size: 418 Bytes

Versions: 1

Compression:

Stored size: 418 Bytes

Contents

/**
 * copied from core, since it's not in the ReactApp folder,
 * it's complicated to import it and mock it in tests.
 * should be imported once core moves it to the ReactApp folder.
 */
export const foremanUrl = path => `${window.URL_PREFIX}${path}`;

export const isNotRhelHost = ({ hostDetails }) =>
  // eslint-disable-next-line camelcase
  !new RegExp('red\\s?hat', 'i').test(hostDetails?.operatingsystem_name);

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foreman_rh_cloud-11.0.2 webpack/ForemanRhCloudHelpers.js