MediaWiki:Common.js: Difference between revisions
Content added Content deleted
No 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/", {" |
fetch("https://puucraft-dynmap-regionsworldjson-test.mixarium.repl.co/", {"method": "GET", "mode": 'cors'}) /* gosh, how do i get around CSP? */ |
||
.then(function(response) { |
.then(function(response) { |
||
if (response.ok) { |
if (response.ok) { |