mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Export chat to downloadable file
This commit is contained in:
@ -119,6 +119,7 @@ import {
|
||||
isElementInViewport,
|
||||
sortMoments,
|
||||
timestampToMoment,
|
||||
download,
|
||||
} from "./scripts/utils.js";
|
||||
|
||||
import { extension_settings, loadExtensionSettings, runGenerationInterceptors } from "./scripts/extensions.js";
|
||||
@ -5890,6 +5891,7 @@ $(document).ready(function () {
|
||||
console.log(data);
|
||||
await delay(250);
|
||||
toastr.success(data.message);
|
||||
download(data.result, body.exportfilename, 'text/plain');
|
||||
}
|
||||
} catch (error) {
|
||||
// display error message
|
||||
|
Reference in New Issue
Block a user