We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61f31df commit 0cfd01cCopy full SHA for 0cfd01c
api/WebApi.ts
@@ -42,7 +42,8 @@ import os = require('os');
42
import url = require('url');
43
import path = require('path');
44
45
-const isBrowser: boolean = typeof window !== 'undefined' && Boolean(window.navigator);
+const isNode = typeof process !== 'undefined' && process.release.name === 'node';
46
+const isBrowser: boolean = typeof window !== 'undefined' && !isNode;
47
/**
48
* Methods to return handler objects (see handlers folder)
49
*/
0 commit comments