Move shallow toggle to config.yaml

This commit is contained in:
Cohee
2025-03-04 23:32:42 +02:00
parent 383806325a
commit 3d813e4ef6
7 changed files with 21 additions and 24 deletions

View File

@@ -1780,9 +1780,7 @@ export async function getCharacters() {
const response = await fetch('/api/characters/all', {
method: 'POST',
headers: getRequestHeaders(),
body: JSON.stringify({
shallow: power_user.shallow_characters,
}),
body: JSON.stringify({}),
});
if (response.ok === true) {
characters.splice(0, characters.length);
@@ -6718,6 +6716,7 @@ export async function unshallowCharacter(characterId) {
return;
}
/** @type {import('./scripts/char-data.js').v1CharData} */
const character = characters[characterId];
if (!character) {
console.warn('Character not found:', characterId);