Преглед на файлове

Changes enableThirdParty requests to disableThirdParty requests, in

order to not change existing behaviour (without changes to config.js).
j8
Boris Grozev преди 10 години
родител
ревизия
e06ec616a6
променени са 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 Целия файл

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

+ 1
- 1
modules/UI/avatar/Avatar.js Целия файл

55
             );
55
             );
56
             email = id;
56
             email = id;
57
         }
57
         }
58
-        if (config.enableThirdPartyRequests === true) {
58
+        if (!config.disableThirdPartyRequests) {
59
             return 'https://www.gravatar.com/avatar/' +
59
             return 'https://www.gravatar.com/avatar/' +
60
                 MD5.hexdigest(id.trim().toLowerCase()) +
60
                 MD5.hexdigest(id.trim().toLowerCase()) +
61
                 "?d=wavatar&size=" + (size || "30");
61
                 "?d=wavatar&size=" + (size || "30");

Loading…
Отказ
Запис