MediaWiki:Common.js: Difference between revisions
Content added Content deleted
mNo edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
if ( mw.config.get('wgPageName') === 'Current_worldguards' ) { |
if ( mw.config.get('wgPageName') === 'Current_worldguards' ) { |
||
function fetch_worldguard_data() { |
function fetch_worldguard_data() { |
||
fetch("https://puucraft-dynmap-regionsworldjson-test.mixarium.repl.co/", {"method": "GET", "mode": 'cors', 'headers': {"content-security-policy": "connect-src 'self'"}) |
fetch("https://puucraft-dynmap-regionsworldjson-test.mixarium.repl.co/", {"method": "GET", "mode": 'cors', 'headers': {"content-security-policy": "connect-src 'self'"}) |
||
.then(function(response) { |
.then(function(response) { |
||
if (response.ok) { |
if (response.ok) { |