Comment Comment by mcteamster Been doing something similar with save files for my game. Line 1 is "<!DOCTYPE html><html><head><script>const rawData =" and line 2 is all the state.Then the save button downloads document.documentElement.outerHTML with line 2 replaced by the current state. No server required.https://github.com/mcteamster/white/blob/main/src/lib/data.t... parent mcteamster 1 year ago
Then the save button downloads document.documentElement.outerHTML with line 2 replaced by the current state. No server required.
https://github.com/mcteamster/white/blob/main/src/lib/data.t...