working read-only app

This commit is contained in:
Thomas Rudin 2018-12-06 14:50:41 +01:00
parent 0f412b5e91
commit 45adfbc023
2 changed files with 4 additions and 6 deletions

View File

@ -55,9 +55,12 @@
m("div"), m("div"),
m(InboxTable) m(InboxTable)
]; ];
else else {
//TODO: side-effect
mails = [];
return null; return null;
} }
}
}; };
})(); })();

View File

@ -7,10 +7,5 @@ if (!process.env.WEBMAILKEY){
const app = require("./app"); const app = require("./app");
require("./api"); require("./api");
var events = require("./events");
events.on("channel-recv", function(msg){
console.log("channel-recv", msg);//XXX
});
app.listen(8080, () => console.log('Listening on http://127.0.0.1:8080')) app.listen(8080, () => console.log('Listening on http://127.0.0.1:8080'))