This repository was archived by the owner on Feb 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
studio/src/app/services/editor/file-system Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ export class FileSystemService {
250250 }
251251
252252 private async parseImportData ( content : JSZip ) : Promise < FileImportData > {
253- let deck : string = await content . file ( 'data.json' ) . async ( 'text' ) ;
253+ let data : string = await content . file ( 'data.json' ) . async ( 'text' ) ;
254254
255255 // If user is offline, then we load the online content saved in the cloud locally too, better display the content than none
256256 if ( ! offlineStore . state . online ) {
@@ -261,12 +261,12 @@ export class FileSystemService {
261261 . filter ( ( { url} ) => url !== undefined )
262262 . forEach ( ( { url, key} : UserAsset ) => {
263263 // deckgo-img img-src="" and slide src=""
264- deck = deck . replaceAll ( `src=\\"${ url } \\"` , `src=\\"${ key } \\"` ) ;
265- deck = deck . replaceAll ( `src=\\"${ url . replaceAll ( '&' , '&' ) } \\"` , `src=\\"${ key } \\"` ) ;
264+ data = data . replaceAll ( `src=\\"${ url } \\"` , `src=\\"${ key } \\"` ) ;
265+ data = data . replaceAll ( `src=\\"${ url . replaceAll ( '&' , '&' ) } \\"` , `src=\\"${ key } \\"` ) ;
266266 } ) ;
267267 }
268268
269- return JSON . parse ( deck ) ;
269+ return JSON . parse ( data ) ;
270270 }
271271
272272 /**
You can’t perform that action at this time.
0 commit comments