diff --git a/dist/isChromatic.js b/dist/isChromatic.js index afff9f5fc..19fb51c3b 100644 --- a/dist/isChromatic.js +++ b/dist/isChromatic.js @@ -1,2 +1,2 @@ -"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isChromatic;function isChromatic(){return window.navigator.userAgent.match(/Chromatic/)||window.location.href.match(/chromatic=true/)} +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isChromatic;function isChromatic(){return!!(window.navigator.userAgent.match(/Chromatic/)||window.location.href.match(/chromatic=true/))} //# sourceMappingURL=isChromatic.js.map \ No newline at end of file diff --git a/dist/isChromatic.js.map b/dist/isChromatic.js.map index 02957d673..ba20f6c60 100644 --- a/dist/isChromatic.js.map +++ b/dist/isChromatic.js.map @@ -1 +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 +{"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 diff --git a/src/isChromatic.js b/src/isChromatic.js index 41a3a1ace..5f7cf886f 100644 --- a/src/isChromatic.js +++ b/src/isChromatic.js @@ -1,7 +1,7 @@ /* eslint-env browser */ export default function isChromatic() { - return ( + return !!( window.navigator.userAgent.match(/Chromatic/) || window.location.href.match(/chromatic=true/) ); }