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:

Parameter Type Description
element HTMLElement Element to fix links in.
sourcePath string Source path used to resolve relative links via {@link MetadataCache.getFirstLinkpathDest}.

Returns: void