diff --git a/api/WebApi.ts b/api/WebApi.ts index 3f475a1..2634a8b 100644 --- a/api/WebApi.ts +++ b/api/WebApi.ts @@ -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) */