mirror of https://github.com/sundowndev/http.git
fix lint errors
parent
0047e6fd76
commit
fcc7934610
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue