Skip to content

Commit

Permalink
Merge pull request #218 from chromaui/isChromatic-boolean
Browse files Browse the repository at this point in the history
Make sure isChromatic returns a boolean
  • Loading branch information
ndelangen committed Dec 15, 2020
2 parents e0eab6a + 92bcd6e commit 882f6cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/isChromatic.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/isChromatic.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion 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/)
);
}

0 comments on commit 882f6cf

Please sign in to comment.