Fixed isBrowser check to use window.document instead (#319)
* Fixed isBrowser check to use window.document instead * Simplified isBrowser check * Removed function from isBrowser
This commit is contained in:
Родитель
9ecc84ccfc
Коммит
2e02035b9e
|
@ -42,8 +42,7 @@ import os = require('os');
|
|||
import url = require('url');
|
||||
import path = require('path');
|
||||
|
||||
const isBrowser: boolean =(function(){return typeof window !== 'undefined' && this===window})();
|
||||
|
||||
const isBrowser: boolean = typeof window !== 'undefined';
|
||||
/**
|
||||
* Methods to return handler objects (see handlers folder)
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче