Fix save action taking data field, not content

This commit is contained in:
thepaperpilot 2024-02-18 17:50:53 +00:00
parent 3fdca4b2ae
commit 97d6da6636

View file

@ -164,7 +164,7 @@ export function initGalaxy({
if (slot in saveCallbacks) { if (slot in saveCallbacks) {
return Promise.reject(`save action for slot ${slot} already in progress.`); return Promise.reject(`save action for slot ${slot} already in progress.`);
} }
galaxy.postMessage({ action: "save", slot, content, label }); galaxy.postMessage({ action: "save", slot, data: content, label });
return new Promise((accept, reject) => { return new Promise((accept, reject) => {
saveCallbacks[slot] = { accept, reject }; saveCallbacks[slot] = { accept, reject };
}); });