Added option to export Playlet full state

This commit is contained in:
Brahim Hadriche committed 2025-07-11 16:42:22 -04:00
1 parent fd42b65a75
commit 933d425a19
5 files changed
+176 -17

No files matched your search

+2 -14
View File
@@ -187,20 +187,8 @@ export class PlayletApi {
}
}
const blob = await response.blob();
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
try {
a.href = url;
a.download = filename;
a.click();
} catch (error) {
throw error;
} finally {
a.remove();
URL.revokeObjectURL(url);
}
const content = await response.text();
return { filename, content };
}
static async setPlayletLibVersion(tag) {