From 9f55bff748f793c9b7b55609a266eda4b52990f2 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Fri, 4 Apr 2014 01:57:37 +0400 Subject: [PATCH] Links protocol fix. --- chrome_point_plus/js/point-plus.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome_point_plus/js/point-plus.js b/chrome_point_plus/js/point-plus.js index d8a574b..96a96cb 100644 --- a/chrome_point_plus/js/point-plus.js +++ b/chrome_point_plus/js/point-plus.js @@ -153,11 +153,11 @@ $(document).ready(function() { var date = new Date(); // Data for template - var userLink = location.protocol + '//' + wsMessage.author + '.point.im/'; + var userLink = '//' + wsMessage.author + '.point.im/'; var postAuthorLink = $('#top-post .info a').attr('href'); var postLink = postAuthorLink + wsMessage.post_id; - var userAvatar = location.protocol + '//point.im/avatar/' + wsMessage.author; - var commentLink = location.protocol + '//point.im/' + wsMessage.post_id + '#' + wsMessage.comment_id; + var userAvatar = '//point.im/avatar/' + wsMessage.author; + var commentLink = '//point.im/' + wsMessage.post_id + '#' + wsMessage.comment_id; var csRfToken = $('.reply-form input[name="csrf_token"').val(); // Filling template