From 97d6da6636a2fc38c14aa893d4b336ccc22314af Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sun, 18 Feb 2024 17:50:53 +0000 Subject: [PATCH] Fix save action taking data field, not content --- galaxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galaxy.js b/galaxy.js index 21d92e2..3aac816 100644 --- a/galaxy.js +++ b/galaxy.js @@ -164,7 +164,7 @@ export function initGalaxy({ if (slot in saveCallbacks) { 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) => { saveCallbacks[slot] = { accept, reject }; });