浏览代码

Changes enableThirdParty requests to disableThirdParty requests, in

order to not change existing behaviour (without changes to config.js).
j8
Boris Grozev 9 年前
父节点
当前提交
f42684d789
共有 3 个文件被更改,包括 4 次插入6 次删除
  1. 1
    1
      config.js
  2. 2
    4
      index.html
  3. 1
    1
      modules/UI/avatar/Avatar.js

+ 1
- 1
config.js 查看文件

69
     /*noticeMessage: 'Service update is scheduled for 16th March 2015. ' +
69
     /*noticeMessage: 'Service update is scheduled for 16th March 2015. ' +
70
     'During that time service will not be available. ' +
70
     'During that time service will not be available. ' +
71
     'Apologise for inconvenience.'*/
71
     'Apologise for inconvenience.'*/
72
-    enableThirdPartyRequests: true
72
+    disableThirdPartyRequests: false
73
 };
73
 };

+ 2
- 4
index.html 查看文件

223
         </div>
223
         </div>
224
     </div>
224
     </div>
225
     <script type="text/javascript">
225
     <script type="text/javascript">
226
-      if (config.enableThirdPartyRequests === true)
227
-      { 
226
+      if (!config.disableThirdPartyRequests) {
228
         [
227
         [
229
           'https://api.callstats.io/static/callstats.min.js',
228
           'https://api.callstats.io/static/callstats.min.js',
230
           'analytics.js?v=1'
229
           'analytics.js?v=1'
231
-        ].forEach(function(extSrc) 
232
-        {
230
+        ].forEach(function(extSrc) {
233
           var extScript = document.createElement('script');
231
           var extScript = document.createElement('script');
234
           extScript.src = extSrc;
232
           extScript.src = extSrc;
235
           extScript.async = false;
233
           extScript.async = false;

+ 1
- 1
modules/UI/avatar/Avatar.js 查看文件

57
                 "No avatar stored yet for " + jid + " - using JID as ID");
57
                 "No avatar stored yet for " + jid + " - using JID as ID");
58
             id = jid;
58
             id = jid;
59
         }
59
         }
60
-        if (config.enableThirdPartyRequests === true) {
60
+        if (!config.disableThirdPartyRequests) {
61
             return 'https://www.gravatar.com/avatar/' +
61
             return 'https://www.gravatar.com/avatar/' +
62
                 MD5.hexdigest(id.trim().toLowerCase()) +
62
                 MD5.hexdigest(id.trim().toLowerCase()) +
63
                 "?d=wavatar&size=" + (size || "30");
63
                 "?d=wavatar&size=" + (size || "30");

正在加载...
取消
保存