UNPKG

chromatic

Version:

Visual Testing for Storybook

9 lines (6 loc) 200 B
/* eslint-env browser */ export default function() { const isChromatic = window.navigator.userAgent.match(/Chromatic/) || window.location.href.match(/chromatic=true/); return isChromatic; }