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) {