Template:Home header: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 4: Line 4:
var conf = mw.config.get([ 'wgUserGroups' ]);
var conf = mw.config.get([ 'wgUserGroups' ]);
var n = conf.wgUserGroups.includes('user');
var n = conf.wgUserGroups.includes('user');
   if ( n === true ) {
   if ( n === false ) {
var processorFileURL = "https://www.wittgensteinproject.org/counter/visitCount"+x+".php";
var processorFileURL = "https://www.wittgensteinproject.org/counter/visitCount"+x+".php";
var xhttp = new XMLHttpRequest();
var xhttp = new XMLHttpRequest();