Skip to content

Commit

Permalink
Semicolon and some other stuff? I dunno
Browse files Browse the repository at this point in the history
  • Loading branch information
eyeballcode committed Dec 18, 2015
1 parent 38fc357 commit 30e760d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion public/javascript/chat-master.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function createChatWS() {
switch (data.eventType) {
case 1:
//New message!
addMessage(data.senderName, data.senderImg, data.content, data.messageID, (data.senderName === CHAT.user.name))
addMessage(data.senderName, data.senderImg, data.content, data.messageID, (data.senderName === CHAT.user.name));
$("html,body").animate({scrollTop: $('.messageWrap').height() * $('.messageWrap').length + 100}, 0);
break;
case 2:
Expand Down
1 change: 0 additions & 1 deletion public/stylesheets/chat.styl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
display inline-block
box-shadow 2px 2px 5px #888888


.roomcard > h3
margin-left 8px
margin-top 8px
Expand Down
2 changes: 1 addition & 1 deletion public/stylesheets/chatMobile.styl
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
.roomcard > h3
margin-left 5px
margin-bottom 0
margin-top 4px
margin-top 4px
2 changes: 1 addition & 1 deletion public/stylesheets/style.styl
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ body

p.link > a
margin-left 5px
color #000000
color #000000
3 changes: 3 additions & 0 deletions routes/util.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
var express = require('express');
var fs = require('fs');
var request = require('request');
var router = express.Router();

router.post('/ip', function (req, res) {
Expand All @@ -7,6 +9,7 @@ router.post('/ip', function (req, res) {
res.send(req.connection.remoteAddress ||
req.socket.remoteAddress ||
req.connection.socket.remoteAddress);
res.end();
});

module.exports = router;

0 comments on commit 30e760d

Please sign in to comment.