|
-
-
- RED.storage = (function() {
- function update() {
-
- if (localStorage) {
- var nns = RED.nodes.createCompleteNodeSet();
- localStorage.setItem("audio_library_guitool", JSON.stringify(nns));
-
- }
- }
- function load() {
- if (localStorage) {
- var data = localStorage.getItem("audio_library_guitool");
-
- if (data) RED.nodes.import(data, false);
- }
- }
- function clear() {
-
- if (localStorage) {
- localStorage.removeItem("audio_library_guitool");
-
- }
- }
- return {
- update: update,
- load: load,
- clear: clear
- }
- })();
|