Export characters with world info embeds.

This commit is contained in:
Cohee
2023-06-23 22:50:16 +03:00
parent 275f187719
commit 9f0530f422
4 changed files with 112 additions and 7 deletions

View File

@@ -4891,7 +4891,8 @@ function checkEmbeddedWorld(chid) {
// Only show the alert once per character
const checkKey = `AlertWI_${characters[chid].avatar}`;
if (!localStorage.getItem(checkKey) && !(characters[chid]?.data?.extensions?.world)) {
const worldName = characters[chid]?.data?.extensions?.world;
if (!localStorage.getItem(checkKey) && (!worldName || !world_names.includes(worldName))) {
toastr.info(
'To import and use it, select "Import Embedded World Info" in the Options menu.',
`${characters[chid].name} has an embedded World/Lorebook`,