Skip to content

Commit

Permalink
Be more specific/strict on what we're trying to do
Browse files Browse the repository at this point in the history
  • Loading branch information
themadtitanmathos committed Apr 5, 2021
1 parent 61f31df commit 0cfd01c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/WebApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ import os = require('os');
import url = require('url');
import path = require('path');

const isBrowser: boolean = typeof window !== 'undefined' && Boolean(window.navigator);
const isNode = typeof process !== 'undefined' && process.release.name === 'node';
const isBrowser: boolean = typeof window !== 'undefined' && !isNode;
/**
* Methods to return handler objects (see handlers folder)
*/
Expand Down

0 comments on commit 0cfd01c

Please sign in to comment.