From b014c4dbf15387f4add1f57869af649c58c0d3fc Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 4 Apr 2022 16:32:42 +0530 Subject: [PATCH] fileHost is undefined for most use cases --- lib/env.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/env.js b/lib/env.js index 22d520203..d9c22feaf 100644 --- a/lib/env.js +++ b/lib/env.js @@ -70,7 +70,7 @@ module.exports.create = function (config) { const Env = { protocol: new URL(httpUnsafeOrigin).protocol, - fileHost: config.fileHost, // XXX + fileHost: config.fileHost || undefined, NO_SANDBOX: NO_SANDBOX, httpSafePort: httpSafePort,