* getFileURL * Returns the URL for the given filename. * If the given value is already a URL, it's returned * If the given value is a relative path, return the real location of that file. * @param {string} val - asset path * @return {string} The real URL pointing to that filena
(val)
| 215 | * @return {string} The real URL pointing to that filename |
| 216 | */ |
| 217 | getFileURL(val) { |
| 218 | if (/^http(s)?:\/\//i.test(val)) return val; // already a url |
| 219 | |
| 220 | const filename = `${this.filePath}${val}`; |
| 221 | return this.fileReplacements[filename] || filename; |
| 222 | } |
| 223 | |
| 224 | |
| 225 | /** |
no outgoing calls
no test coverage detected