Skip to content

App.fixFileLinks method

App › fixFileLinks

Unofficial

Manually fix all file links pointing towards image/audio/video resources in element.

Signature:

fixFileLinks(element: HTMLElement, sourcePath: string): void

Parameters:

ParameterTypeDescription
elementHTMLElementElement to fix links in.
sourcePathstringSource path used to resolve relative links via {@link MetadataCache.getFirstLinkpathDest}.

Returns: void