diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-06-16 16:42:14 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-06-16 16:42:14 -0400 |
commit | d927e2ba69dd355c01878afc0ec57cca6889b8e1 (patch) | |
tree | 5c8836e535e01d9ce5076104f0db6a4a0c82e313 | |
parent | eedced16c37248ea02992262ef0a63638db674d0 (diff) | |
download | chat-d927e2ba69dd355c01878afc0ec57cca6889b8e1.tar.gz chat-d927e2ba69dd355c01878afc0ec57cca6889b8e1.tar.bz2 chat-d927e2ba69dd355c01878afc0ec57cca6889b8e1.zip |
Fixing link
-rw-r--r-- | web/react/utils/utils.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx index b20e54e84..628d92342 100644 --- a/web/react/utils/utils.jsx +++ b/web/react/utils/utils.jsx @@ -737,8 +737,8 @@ module.exports.getHomeLink = function() { } var parts = window.location.host.split("."); if (parts.length <= 1) { - return window.location.host; + return window.location.protocol + "//" + window.location.host; } parts[0] = "www"; - return parts.join("."); + return window.location.protocol + "//" + parts.join("."); } |