Added option to export Playlet full state
This commit is contained in:
1 parent
fd42b65a75
commit
933d425a19
5 files changed
+176
-17
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user