Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 102bfdb

Browse files
refactor: rename variable
Signed-off-by: peterpeterparker <[email protected]>
1 parent 9a59a16 commit 102bfdb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

studio/src/app/services/editor/file-system/file-system.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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('&', '&amp;')}\\"`, `src=\\"${key}\\"`);
264+
data = data.replaceAll(`src=\\"${url}\\"`, `src=\\"${key}\\"`);
265+
data = data.replaceAll(`src=\\"${url.replaceAll('&', '&amp;')}\\"`, `src=\\"${key}\\"`);
266266
});
267267
}
268268

269-
return JSON.parse(deck);
269+
return JSON.parse(data);
270270
}
271271

272272
/**

0 commit comments

Comments
 (0)