mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
[chore] Fix comments/logs
This commit is contained in:
@ -316,7 +316,6 @@ class WorldInfoBuffer {
|
|||||||
* @returns {object|undefined} the external version if the entry is forcefully activated, undefined otherwise
|
* @returns {object|undefined} the external version if the entry is forcefully activated, undefined otherwise
|
||||||
*/
|
*/
|
||||||
getExternallyActivated(entry) {
|
getExternallyActivated(entry) {
|
||||||
// Entries could be copied with structuredClone, so we need to compare them by string representation
|
|
||||||
return WorldInfoBuffer.externalActivations.get(`${entry.world}.${entry.uid}`);
|
return WorldInfoBuffer.externalActivations.get(`${entry.world}.${entry.uid}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -870,7 +869,7 @@ export function setWorldInfoSettings(settings, data) {
|
|||||||
eventSource.on(event_types.WORLDINFO_FORCE_ACTIVATE, (entries) => {
|
eventSource.on(event_types.WORLDINFO_FORCE_ACTIVATE, (entries) => {
|
||||||
for (const entry of entries) {
|
for (const entry of entries) {
|
||||||
if (!Object.hasOwn(entry, 'world') || !Object.hasOwn(entry, 'uid')) {
|
if (!Object.hasOwn(entry, 'world') || !Object.hasOwn(entry, 'uid')) {
|
||||||
console.error('WORLDINFO_FORCE_ACTIVATE requires all entries to have both world and uid fields, entry IGNORED');
|
console.error('[WI] WORLDINFO_FORCE_ACTIVATE requires all entries to have both world and uid fields, entry IGNORED', entry);
|
||||||
} else {
|
} else {
|
||||||
WorldInfoBuffer.externalActivations.set(`${entry.world}.${entry.uid}`, entry);
|
WorldInfoBuffer.externalActivations.set(`${entry.world}.${entry.uid}`, entry);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user