File tree Expand file tree Collapse file tree
designer/src/builtin-simulator Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,12 +56,13 @@ export function createSimulator(
5656 }
5757 const id = asset . id ? ` data-id="${ asset . id } "` : '' ;
5858 const lv = asset . level || level || AssetLevel . Environment ;
59+ const scriptType = asset . scriptType ? ` type="${ asset . scriptType } "` : '' ;
5960 if ( asset . type === AssetType . JSUrl ) {
6061 scripts [ lv ] . push (
61- `<script src="${ asset . content } "${ id } ></script>` ,
62+ `<script src="${ asset . content } "${ id } ${ scriptType } ></script>` ,
6263 ) ;
6364 } else if ( asset . type === AssetType . JSText ) {
64- scripts [ lv ] . push ( `<script${ id } >${ asset . content } </script>` ) ;
65+ scripts [ lv ] . push ( `<script${ id } ${ scriptType } >${ asset . content } </script>` ) ;
6566 } else if ( asset . type === AssetType . CSSUrl ) {
6667 styles [ lv ] . push (
6768 `<link rel="stylesheet" href="${ asset . content } "${ id } />` ,
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ export interface AssetItem {
3838 device ?: string ;
3939 level ?: AssetLevel ;
4040 id ?: string ;
41+ scriptType ?: string ;
4142}
4243
4344export type AssetList = Array < Asset | undefined | null > ;
You can’t perform that action at this time.
0 commit comments