Export chat to downloadable file

This commit is contained in:
SillyLossy
2023-05-30 01:56:22 +03:00
parent 2c862eb0a5
commit 8454cfa666
2 changed files with 13 additions and 20 deletions

View File

@ -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