|
|
il y a 3 ans | |
|---|---|---|
| .. | ||
| dist | il y a 3 ans | |
| src | il y a 3 ans | |
| test | il y a 3 ans | |
| .babelrc | il y a 3 ans | |
| .eslintrc | il y a 3 ans | |
| .npmignore | il y a 3 ans | |
| package.json | il y a 3 ans | |
| readme.md | il y a 3 ans | |
import isBrowser from 'is-in-browser';
if(isBrowser) {
//...
}
For those not using Babel / ES6 Modules
var isBrowser = require('is-in-browser').default;
if(isBrowser) { //... }