UNPKG

549 BSource Map (JSON)View Raw
1{"version":3,"sources":["../src/isChromatic.js"],"names":["isChromatic","window","navigator","userAgent","match","location","href"],"mappings":"mGAEe,QAASA,CAAAA,WAAT,EAAuB,CACpC,MACEC,CAAAA,MAAM,CAACC,SAAP,CAAiBC,SAAjB,CAA2BC,KAA3B,CAAiC,WAAjC,GAAiDH,MAAM,CAACI,QAAP,CAAgBC,IAAhB,CAAqBF,KAArB,CAA2B,gBAA3B,CAEpD","sourcesContent":["/* eslint-env browser */\n\nexport default function isChromatic() {\n return (\n window.navigator.userAgent.match(/Chromatic/) || window.location.href.match(/chromatic=true/)\n );\n}\n"],"file":"isChromatic.js"}
\No newline at end of file