Fix save action taking data field, not content
This commit is contained in:
parent
3fdca4b2ae
commit
97d6da6636
1 changed files with 1 additions and 1 deletions
|
@ -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 };
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue