Skip to main content

@novorender/web_app / downloadOfflineImports

Function: downloadOfflineImports()

function downloadOfflineImports(map): Promise<OfflineImports>

Download any missing imports.

Parameters

ParameterTypeDescription
mapOfflineImportMapURLs or bundled asset map.

Returns

Promise<OfflineImports>

Remarks

This function will attempt to download any resource not inlined from the specified urls, using the specified baseUrl. If map is undefined, it will look for the files in the same folder as the current script.

Defined in

@novorender/offline/imports.ts:41