mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
fix: correct the transport protocol check (#6576)
This commit is contained in:
parent
dd1231cc55
commit
44024e8a5f
1 changed files with 1 additions and 1 deletions
|
@ -837,7 +837,7 @@ exports.reloadSettings = () => {
|
||||||
exports.skinName = 'colibris';
|
exports.skinName = 'colibris';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!exports.socketTransportProtocols.includes("websocket") || exports.socketTransportProtocols.includes("polling")) {
|
if (!exports.socketTransportProtocols.includes("websocket") || !exports.socketTransportProtocols.includes("polling")) {
|
||||||
logger.warn("Invalid socketTransportProtocols setting. Please check out settings.json.template and update your settings.json. Falling back to the default ['websocket', 'polling'].");
|
logger.warn("Invalid socketTransportProtocols setting. Please check out settings.json.template and update your settings.json. Falling back to the default ['websocket', 'polling'].");
|
||||||
exports.socketTransportProtocols = ['websocket', 'polling'];
|
exports.socketTransportProtocols = ['websocket', 'polling'];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue