瀏覽代碼

Added import functionality of Arduino code (without disturbing whitespaces and empty lines)

dds
Manfred Müller-Späth 9 年之前
父節點
當前提交
90aad62e30
共有 1 個檔案被更改,包括 9 行新增1 行删除
  1. +9
    -1
      gui/red/storage.js

+ 9
- 1
gui/red/storage.js 查看文件

@@ -18,8 +18,16 @@ RED.storage = (function() {
if (data) RED.nodes.import(data, false);
}
}
function clear() {
// TOOD: use setTimeout to limit the rate of changes?
if (localStorage) {
localStorage.removeItem("audio_library_guitool");
//console.log("localStorage write");
}
}
return {
update: update,
load: load
load: load,
clear: clear
}
})();

Loading…
取消
儲存