feature (orgmode): making org mode awesome from a browser

This commit is contained in:
Mickael KERJEAN
2018-05-02 20:55:43 +10:00
parent db44e0b7e3
commit 8b313c6bef
39 changed files with 866 additions and 255 deletions

View File

@ -85,7 +85,7 @@ Data.prototype.upsert = function(type, path, fn){
return new Promise((done, error) => {
query.onsuccess = (e) => {
const new_data = fn(query.result || null);
if(!new_data) return done(query.result);
if(!new_data) return done(query.result || null);
const request = store.put(new_data);
request.onsuccess = () => done(new_data);