浏览代码

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

master
Lyubomir Marinov 9 年前
父节点
当前提交
41872781f9
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      modules/config/BoshAddressChoice.js

+ 2
- 2
modules/config/BoshAddressChoice.js 查看文件

@@ -1,4 +1,4 @@
1
-var jssha = require('jssha');
1
+var JSSHA = require('jssha');
2 2
 
3 3
 module.exports = {
4 4
     /**
@@ -16,7 +16,7 @@ module.exports = {
16 16
         // This implements the actual choice of an entry in the list based on
17 17
         // roomName. Please consider the implications for existing deployments
18 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 20
         var n = parseInt("0x"+hash.substr(-6));
21 21
         var idx = n % config.boshList.length;
22 22
         var attemptFirstAddress;

正在加载...
取消
保存