mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Set content type of Blobs in downloadStory()
This commit is contained in:
@ -1379,7 +1379,7 @@ function downloadStory(format) {
|
||||
}
|
||||
|
||||
if(format == "plaintext") {
|
||||
var objectURL = URL.createObjectURL(new Blob(actionlist_compiled));
|
||||
var objectURL = URL.createObjectURL(new Blob(actionlist_compiled, {type: "text/plain; charset=UTF-8"}));
|
||||
anchor.setAttribute('href', objectURL);
|
||||
anchor.setAttribute('download', filename_without_extension + ".txt");
|
||||
anchor.click();
|
||||
@ -1425,7 +1425,7 @@ function downloadStory(format) {
|
||||
worldinfo: wilist_compiled,
|
||||
wifolders_d: wifolders_d,
|
||||
wifolders_l: wifolders_l,
|
||||
}, null, 3)]));
|
||||
}, null, 3)], {type: "application/json; charset=UTF-8"}));
|
||||
anchor.setAttribute('href', objectURL);
|
||||
anchor.setAttribute('download', filename_without_extension + ".json");
|
||||
anchor.click();
|
||||
|
Reference in New Issue
Block a user