Skip to content

Commit

Permalink
isBrowser === true while in a node application using electron-link
Browse files Browse the repository at this point in the history
Because global.window is being set by electron-link
  • Loading branch information
themadtitanmathos committed Apr 1, 2021
1 parent 470f9ca commit 61f31df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/WebApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import os = require('os');
import url = require('url');
import path = require('path');

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

0 comments on commit 61f31df

Please sign in to comment.