We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb1e211 commit 897eea7Copy full SHA for 897eea7
lib/resource-mapper.js
@@ -55,13 +55,15 @@ class ResourceMapper {
55
56
// Returns the URL corresponding to the relative path on the pod
57
resolveUrl (hostname, pathname = '') {
58
- return !this._includeHost ? `${this._rootUrl}${pathname}`
+ return !this._includeHost
59
+ ? `${this._rootUrl}${pathname}`
60
: `${this._protocol}//${hostname}${this._port}${this._rootUrl}${pathname}`
61
}
62
63
// Returns the file path corresponding to the relative file path on the pod
64
resolveFilePath (hostname, filePath = '') {
- return !this._includeHost ? `${this._rootPath}${filePath}`
65
66
+ ? `${this._rootPath}${filePath}`
67
: `${this._rootPath}/${hostname}${filePath}`
68
69
0 commit comments