Browse Source

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

j8
Lyubomir Marinov 9 years ago
parent
commit
41872781f9
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      modules/config/BoshAddressChoice.js

+ 2
- 2
modules/config/BoshAddressChoice.js View File

1
-var jssha = require('jssha');
1
+var JSSHA = require('jssha');
2
 
2
 
3
 module.exports = {
3
 module.exports = {
4
     /**
4
     /**
16
         // This implements the actual choice of an entry in the list based on
16
         // This implements the actual choice of an entry in the list based on
17
         // roomName. Please consider the implications for existing deployments
17
         // roomName. Please consider the implications for existing deployments
18
         // before introducing changes.
18
         // before introducing changes.
19
-        var hash = (new jssha(roomName, 'TEXT')).getHash('SHA-1', 'HEX');
19
+        var hash = (new JSSHA(roomName, 'TEXT')).getHash('SHA-1', 'HEX');
20
         var n = parseInt("0x"+hash.substr(-6));
20
         var n = parseInt("0x"+hash.substr(-6));
21
         var idx = n % config.boshList.length;
21
         var idx = n % config.boshList.length;
22
         var attemptFirstAddress;
22
         var attemptFirstAddress;

Loading…
Cancel
Save