Created
April 14, 2022 22:03
-
-
Save mochki/2b5f579ffbf52e4f8a6e567c597743e4 to your computer and use it in GitHub Desktop.
vamp survr save migration (when steam wont sync and its in "Capaciitor Storage")
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
copy( | |
Object.entries({...window.localStorage}) | |
.reduce((acc, [key, val]) => ({...acc, [key.replace('CapacitorStorage.', '')]: JSON.parse(val)}), {}) | |
) | |
Object.entries(a).forEach(([k, v]) => {window.localStorage.setItem(`CapacitorStorage.${k}`, JSON.stringify(v))}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment