function.downloadOfflineImports
API > downloadOfflineImports
Function: downloadOfflineImports
downloadOfflineImports(
map
):Promise
\<OfflineImports
>
Download any missing imports.
Parameters
Parameter | Type | Description |
---|---|---|
map | OfflineImportMap | URLs or bundled asset map. |
Returns
Promise
\< OfflineImports
>
Source
@novorender/offline/imports.ts:41
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.