UNPKG

560 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,MAAO,CAAC,EACNC,MAAM,CAACC,SAAP,CAAiBC,SAAjB,CAA2BC,KAA3B,CAAiC,WAAjC,GAAiDH,MAAM,CAACI,QAAP,CAAgBC,IAAhB,CAAqBF,KAArB,CAA2B,gBAA3B,CAD3C,CAGT","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