From 99230387f797eeda2678649290ec271a0266a630 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 28 Jul 2016 01:36:37 +0300 Subject: www: make eslint happy --- juick-www/src/main/static/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-www/src/main') diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index a7052cfa..3ea35ed4 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -14,7 +14,7 @@ function initWS() { var pageMID = content.getAttribute('data-mid'); if (!pageMID) { return } - var url = (window.location.protocol === 'https:' ? 'wss' : 'ws') + ":" + var url = (window.location.protocol === 'https:' ? 'wss' : 'ws') + ':' + (typeof juickDebug !== 'undefined' ? '//ws.juick.com/_replies' : ('//ws.juick.com/' + pageMID)), hash = document.getElementById('body').getAttribute('data-hash'); -- cgit v1.2.3