Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Fixes a lint error about a constructor name not starting with an uppercase letter.

Lyubomir Marinov41872781f906
diff --git a/modules/config/BoshAddressChoice.js b/modules/config/BoshAddressChoice.js
index b2a16eb99a..a2d24b550e 100644
--- a/modules/config/BoshAddressChoice.js
+++ b/modules/config/BoshAddressChoice.js
@@ -1,4 +1,4 @@
-var jssha = require('jssha');
+var JSSHA = require('jssha');
module.exports = {
/**
@@ -16,7 +16,7 @@ module.exports = {
// This implements the actual choice of an entry in the list based on
// roomName. Please consider the implications for existing deployments
// before introducing changes.
- var hash = (new jssha(roomName, 'TEXT')).getHash('SHA-1', 'HEX');
+ var hash = (new JSSHA(roomName, 'TEXT')).getHash('SHA-1', 'HEX');
var n = parseInt("0x"+hash.substr(-6));
var idx = n % config.boshList.length;
var attemptFirstAddress;