(relativeUrlString, element)
| 556 | * @return {string} |
| 557 | */ |
| 558 | export function relativeToSourceUrl(relativeUrlString, element) { |
| 559 | const {sourceUrl} = Services.documentInfoForDoc(element); |
| 560 | return Services.urlForDoc(element).resolveRelativeUrl( |
| 561 | relativeUrlString, |
| 562 | sourceUrl |
| 563 | ); |
| 564 | } |
| 565 | |
| 566 | /** |
| 567 | * Fallback for URL resolver when URL class is not available. |
nothing calls this directly
no test coverage detected