Commit 70ed9711 authored by Tristan Cavelier's avatar Tristan Cavelier

wrong path was given to localStorage in putAttachment method

parent 5b97a6a9
......@@ -159,8 +159,10 @@ var newLocalStorage = function (spec, my) {
}
// upload data
localstorage.setItem(
priv.localpath + "/" + command.getAttachmentId(),
command.getAttachmentData());
priv.localpath + "/" + command.getDocId() + "/" +
command.getAttachmentId(),
command.getAttachmentData()
);
// write document
localstorage.setItem(
priv.localpath + "/" + command.getDocId(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment