diff --git a/package.json b/package.json index e3d4ae9b..ab5d2992 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "devDependencies": { "eslint": "^8.57.0", "eslint-config-etherpad": "^4.0.4", - "socket.io-client": "^4.7.5", + "socket.io-client": "*", "superagent": "^8.1.2", "typescript": "^5.4.2" }, diff --git a/static/js/index.js b/static/js/index.js index 234cb344..71b65b7b 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -19,6 +19,8 @@ const preCommentMark = require('ep_comments_page/static/js/preCommentMark'); const getCommentIdOnFirstPositionSelected = events.getCommentIdOnFirstPositionSelected; const hasCommentOnSelection = events.hasCommentOnSelection; const Security = require('ep_etherpad-lite/static/js/security'); +// eslint-disable-next-line no-redeclare +const io = require('socket.io-client'); const cssFiles = [ 'ep_comments_page/static/css/comment.css',