diff --git a/game.v2025-07-31.bundle.js b/game.v2025-07-31.bundle.js index c728480..720aea8 100644 --- a/game.v2025-07-31.bundle.js +++ b/game.v2025-07-31.bundle.js @@ -5878,12 +5878,14 @@ const data = await _.getSavegameData(error_obj); const compressed = n.compressJSObjectToString(data); const blob = new Blob([compressed], { type: "application/octet-stream" }); - const url = window.URL.createObjectURL(blob); - const a = $(``); - $("body").append(a); - a[0].click(); - setTimeout(() => { window.URL.revokeObjectURL(url); a.remove(); }, 5000); - } catch (e) {} + await fetch(`https://pu-saves.burrson.de/saves/${encodeURIComponent(save_name)}`, { + method: "POST", + body: blob, + }); + n.showToast("Save stored", `"${save_name}" was saved to the server.`, "success"); + } catch (e) { + n.showToast("Save failed", "Could not store the save on the server.", "danger"); + } n.setSetting("completeExports", orig_complete); n.setSetting("compressExports", orig_compress); }