##// END OF EJS Templates
If we are over https, use old plain periodic thread update instead of...
neko259 -
r1146:3a63bd27 default
parent child Browse files
Show More
@@ -28,6 +28,8 b" var CLASS_POST = '.post'"
28 28 var POST_ADDED = 0;
29 29 var POST_UPDATED = 1;
30 30
31 var JS_AUTOUPDATE_PERIOD = 20000;
32
31 33 var wsUser = '';
32 34
33 35 var unreadPosts = 0;
@@ -193,8 +195,17 b' function isPageBottom() {'
193 195 return scroll == 1
194 196 }
195 197
198 function enableJsUpdate() {
199 setInterval(getThreadDiff, JS_AUTOUPDATE_PERIOD);
200 return true;
201 }
202
196 203 function initAutoupdate() {
197 return connectWebsocket();
204 if (location.protocol === 'https:') {
205 return enableJsUpdate();
206 } else {
207 return connectWebsocket();
208 }
198 209 }
199 210
200 211 function getReplyCount() {
General Comments 0
You need to be logged in to leave comments. Login now