Merge pull request #503 from 101100/fix-warning

Check httpSafeOrigin in config variable
This commit is contained in:
ansuz authored and GitHub committed 2020-03-10 18:10:08 -04:00
commit e7baa79000
1 file changed
+1 -1
+1 -1
View File
@@ -55,7 +55,7 @@ if (process.env.PACKAGE) {
config.httpPort = 3000;
}
if (typeof(httpSafeOrigin) !== 'string') {
if (typeof(config.httpSafeOrigin) !== 'string') {
if (typeof(config.httpSafePort) !== 'number') {
config.httpSafePort = config.httpPort + 1;
}