Hi, I am looking on the counting of string bytes for official saving -
cr.logexport("Saved state to IndexedDB storage (" + savingJson.length + " bytes)");[/code:2i459fxf]
"savingJson.length" is the characters count of a string(savingJson). It might not the bytes count of this string.
Develop games in your browser. Powerful, performant & highly capable.
It's just for information purposes, I don't think it's that important. Besides the real byte length depends on the encoding, and IndexedDB may use something else like UTF-8 for storage, so you can't actually really tell!