Skip to content

Commit 2e02035

Browse files
emtenczaDanny McCormick
authored andcommitted
Fixed isBrowser check to use window.document instead (#319)
* Fixed isBrowser check to use window.document instead * Simplified isBrowser check * Removed function from isBrowser
1 parent 9ecc84c commit 2e02035

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

api/WebApi.ts

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

45-
const isBrowser: boolean =(function(){return typeof window !== 'undefined' && this===window})();
46-
45+
const isBrowser: boolean = typeof window !== 'undefined';
4746
/**
4847
* Methods to return handler objects (see handlers folder)
4948
*/

0 commit comments

Comments
 (0)