/* eslint-env browser */

function isChromatic(windowArgument) {
  const windowToCheck = windowArgument || (typeof window !== 'undefined' && window);
  return !!(
    windowToCheck &&
    (/Chromatic/.test(windowToCheck.navigator.userAgent) ||
      /chromatic=true/.test(windowToCheck.location.href))
  );
}

export { isChromatic as default };
//# sourceMappingURL=isChromatic.mjs.map
