Explorar el Código

Changes enableThirdParty requests to disableThirdParty requests, in

order to not change existing behaviour (without changes to config.js).
j8
Boris Grozev hace 9 años
padre
commit
e06ec616a6
Se han modificado 3 ficheros con 4 adiciones y 6 borrados
  1. 1
    1
      config.js
  2. 2
    4
      index.html
  3. 1
    1
      modules/UI/avatar/Avatar.js

+ 1
- 1
config.js Ver fichero

@@ -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 Ver fichero

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

+ 1
- 1
modules/UI/avatar/Avatar.js Ver fichero

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

Loading…
Cancelar
Guardar