Skip to content

Commit 61f31df

Browse files
isBrowser === true while in a node application using electron-link
Because global.window is being set by electron-link
1 parent 470f9ca commit 61f31df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/WebApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import os = require('os');
4242
import url = require('url');
4343
import path = require('path');
4444

45-
const isBrowser: boolean = typeof window !== 'undefined';
45+
const isBrowser: boolean = typeof window !== 'undefined' && Boolean(window.navigator);
4646
/**
4747
* Methods to return handler objects (see handlers folder)
4848
*/

0 commit comments

Comments
 (0)