Browse Source

Changes enableThirdParty requests to disableThirdParty requests, in

order to not change existing behaviour (without changes to config.js).
j8
Boris Grozev 9 years ago
parent
commit
f42684d789
3 changed files with 4 additions and 6 deletions
  1. 1
    1
      config.js
  2. 2
    4
      index.html
  3. 1
    1
      modules/UI/avatar/Avatar.js

+ 1
- 1
config.js View File

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

+ 2
- 4
index.html View File

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

+ 1
- 1
modules/UI/avatar/Avatar.js View File

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

Loading…
Cancel
Save