summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorChristoph (Sheogorath) Kern2018-02-05 14:50:47 +0100
committerGitHub2018-02-05 14:50:47 +0100
commitf3358b49f513c630e01357948be8591eb6e4d319 (patch)
tree5e099dfcdd07c8f64f2968f0ca1b1205841a6b9a /public
parent20242622004edc2438ecb6f59feab0b9eddc6280 (diff)
parentc4f8fb78eeef1c9536caae4c8cced4f0f50f1932 (diff)
Merge pull request #716 from stbuehler/fix-referer
don't require referer to find note id in socket.io connections (fixes #623)
Diffstat (limited to 'public')
-rw-r--r--public/js/index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 5ff716fd..096f7fde 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -1762,6 +1762,9 @@ window.havePermission = havePermission
var io = require('socket.io-client')
var socket = io.connect({
path: urlpath ? '/' + urlpath + '/socket.io/' : '',
+ query: {
+ noteId: noteid
+ },
timeout: 5000, // 5 secs to timeout,
reconnectionAttempts: 20 // retry 20 times on connect failed
})