use correct store api calls in frame.js

also don't log unnecessarily
This commit is contained in:
ansuz
2016-08-03 11:02:34 +02:00
parent dcc9810a42
commit a094e3c02e
3 changed files with 7 additions and 6 deletions

View File

@@ -159,7 +159,6 @@ define([
}
getRecentPads(function (err, recentPads) {
console.log(recentPads);
setRecentPads(recentPads.filter(function (pad) {
if (pad.href !== href) {
return true;
@@ -179,7 +178,10 @@ define([
return k.indexOf(hash) === 0;
});
if (!toRemove.length) { return; }
if (!toRemove.length) {
cb();
return;
}
Store.removebatch(toRemove, function (err, data) {
cb(err, data);
});