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. ' + /*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

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

@ -55,7 +55,7 @@ var Avatar = {
); );
email = id; email = id;
} }
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");