ソースを参照

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;

読み込み中…
キャンセル
保存