Changes enableThirdParty requests to disableThirdParty requests, in
order to not change existing behaviour (without changes to config.js).
This commit is contained in:
parent
2b06ca9df7
commit
e06ec616a6
|
@ -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
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue