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) { ...@@ -159,8 +159,10 @@ var newLocalStorage = function (spec, my) {
} }
// upload data // upload data
localstorage.setItem( localstorage.setItem(
priv.localpath + "/" + command.getAttachmentId(), priv.localpath + "/" + command.getDocId() + "/" +
command.getAttachmentData()); command.getAttachmentId(),
command.getAttachmentData()
);
// write document // write document
localstorage.setItem( localstorage.setItem(
priv.localpath + "/" + command.getDocId(), 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