Initiate socket connection on load
This commit is contained in:
parent
dd54dadfdd
commit
f2948edcc6
|
@ -1,4 +1,6 @@
|
|||
$(document).ready(function() {
|
||||
var socket = io();
|
||||
|
||||
$('.modal-background, .modal-close').click(function() {
|
||||
$(this).parent('.modal').removeClass('is-active');
|
||||
});
|
||||
|
|
|
@ -52,11 +52,6 @@ function Server () {
|
|||
});
|
||||
|
||||
this.server.post('/give', (req, res) => {
|
||||
console.log(req.body);
|
||||
console.log(req.files);
|
||||
|
||||
let success = false;
|
||||
|
||||
if (Object.keys(req.files).length > 0
|
||||
&& req.body.hasOwnProperty('title') && req.body.title.trim() !== ''
|
||||
&& req.body.hasOwnProperty('summary') && req.body.summary.trim() !== '') {
|
||||
|
|
Loading…
Reference in New Issue