Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

copy localstorage javascript

var data = JSON.parse(/*previously copied stringified JSON from clipboard*/);
Object.keys(data).forEach(function (k) {
  localStorage.setItem(k, data[k]);
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #copy #localstorage #javascript
ADD COMMENT
Topic
Name
1+4 =