diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2018-07-10 21:25:45 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2018-07-10 21:25:45 +0200 |
commit | 727daa2e937ab9ff7b371b9adf528436762e6951 (patch) | |
tree | 4461a665911ff1a6167f32bda4ae252305208c75 | |
parent | 65e7ebe2430f30b5b873bc968821ae9cbda72ccc (diff) |
lijst: log removed items
-rw-r--r-- | modules/lijst/lijst.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/lijst/lijst.js b/modules/lijst/lijst.js index 67eef55..eccbba7 100644 --- a/modules/lijst/lijst.js +++ b/modules/lijst/lijst.js @@ -39,7 +39,10 @@ module.exports=function(app,io,_moddir){ res.status(200).end(); }); app.post("/lijst/remove",function(req,res){ - if(lijst.length>0)lijst.shift(); + if(lijst.length>0){ + console.log("Removed item: "+lijst[0]); + lijst.shift(); + } persist.setItemSync("lijst",lijst); res.status(200).end(); }); |