Created
October 16, 2020 17:56
-
-
Save x-N0/575ec675d8e0589497e6f6d60e4d2c20 to your computer and use it in GitHub Desktop.
Javascript code to put LocalStorage (K)=>(V) into the session.
This file contains hidden or 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
var data = JSON.parse(/*paste stringified JSON from clipboard*/); | |
Object.keys(data).forEach(function (k) { | |
localStorage.setItem(k, data[k]); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment