From 9ae7a45d9d487d1465e6ac2826b7cd28ab9e9ae9 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sat, 25 Apr 2020 09:09:06 +0200 Subject: [PATCH] Update FileStorage.js --- src/FileStorage.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/FileStorage.js b/src/FileStorage.js index 6bd1d1883..ee85468b0 100644 --- a/src/FileStorage.js +++ b/src/FileStorage.js @@ -27,6 +27,9 @@ function newFileStorage (host, port) { getFileFromHost: getFileFromHost } + if (host === '' || host === undefined) { host = 'localhost' } + if (port === '' || port === undefined) { port = '34247' } + return thisObject async function getFileFromHost (filePath, callBackFunction, pathComplete) {