Skip to content

Commit

Permalink
fix(browser): when calling global "process" an error is being thrown (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
marlosin committed Jan 22, 2020
1 parent 752b7fa commit 87bb417
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/config/index.ts
Expand Up @@ -2,8 +2,10 @@ import { API as DEFAULT_API, DELAY } from "./config";

let API = DEFAULT_API;

/* for development purpose */
if (process && process.env && process.env.JEXIA_DEV_DOMAIN) {
const isNodeJS = typeof process === "object";

// for development purposes we override domain in order to run e2e tests in a given environment
if (isNodeJS && process.env && process.env.JEXIA_DEV_DOMAIN) {
API.DOMAIN = process.env.JEXIA_DEV_DOMAIN;
}

Expand Down

0 comments on commit 87bb417

Please sign in to comment.