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 2b06ca9df7
commit e06ec616a6
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. ' +
'During that time service will not be available. ' +
'Apologise for inconvenience.'*/
enableThirdPartyRequests: true
disableThirdPartyRequests: false
};

View File

@ -224,13 +224,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;

View File

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