Merge pull request #503 from 101100/fix-warning

Check httpSafeOrigin in config variable
pull/1/head
ansuz 5 years ago committed by GitHub
commit e7baa79000
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -55,7 +55,7 @@ if (process.env.PACKAGE) {
config.httpPort = 3000; config.httpPort = 3000;
} }
if (typeof(httpSafeOrigin) !== 'string') { if (typeof(config.httpSafeOrigin) !== 'string') {
if (typeof(config.httpSafePort) !== 'number') { if (typeof(config.httpSafePort) !== 'number') {
config.httpSafePort = config.httpPort + 1; config.httpSafePort = config.httpPort + 1;
} }

Loading…
Cancel
Save