Changes enableThirdParty requests to disableThirdParty requests, in
order to not change existing behaviour (without changes to config.js).
This commit is contained in:
parent
c2c3d0fd87
commit
f42684d789
|
@ -69,5 +69,5 @@ var config = {
|
|||
/*noticeMessage: 'Service update is scheduled for 16th March 2015. ' +
|
||||
'During that time service will not be available. ' +
|
||||
'Apologise for inconvenience.'*/
|
||||
enableThirdPartyRequests: true
|
||||
disableThirdPartyRequests: false
|
||||
};
|
||||
|
|
|
@ -223,13 +223,11 @@
|
|||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
if (config.enableThirdPartyRequests === true)
|
||||
{
|
||||
if (!config.disableThirdPartyRequests) {
|
||||
[
|
||||
'https://api.callstats.io/static/callstats.min.js',
|
||||
'analytics.js?v=1'
|
||||
].forEach(function(extSrc)
|
||||
{
|
||||
].forEach(function(extSrc) {
|
||||
var extScript = document.createElement('script');
|
||||
extScript.src = extSrc;
|
||||
extScript.async = false;
|
||||
|
|
|
@ -57,7 +57,7 @@ var Avatar = {
|
|||
"No avatar stored yet for " + jid + " - using JID as ID");
|
||||
id = jid;
|
||||
}
|
||||
if (config.enableThirdPartyRequests === true) {
|
||||
if (!config.disableThirdPartyRequests) {
|
||||
return 'https://www.gravatar.com/avatar/' +
|
||||
MD5.hexdigest(id.trim().toLowerCase()) +
|
||||
"?d=wavatar&size=" + (size || "30");
|
||||
|
|
Loading…
Reference in New Issue