fix lint errors

master
Pooya Parsa 2019-09-05 18:34:41 +02:00
parent 0047e6fd76
commit fcc7934610
4 changed files with 6 additions and 6 deletions

View File

@ -72,7 +72,7 @@ function httpModule(_moduleOptions) {
// Convert http:// to https:// if https option is on
if (options.https === true) {
const https = s => s.indexOf('//localhost:') > -1 ? s : s.replace('http://', 'https://')
const https = s => s.includes('//localhost:') ? s : s.replace('http://', 'https://')
options.baseURL = https(options.baseURL)
options.browserBaseURL = https(options.browserBaseURL)
}