Changes enableThirdParty requests to disableThirdParty requests, in

order to not change existing behaviour (without changes to config.js).
This commit is contained in:
Boris Grozev 2015-12-08 22:51:29 +00:00
parent c2c3d0fd87
commit f42684d789
3 changed files with 4 additions and 6 deletions

View File

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

View File

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

View File

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