MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 2:
if ( mw.config.get('wgPageName') === 'Current_worldguards' ) {
function fetch_worldguard_data() {
fetch("https://puucraft-dynmap-regionsworldjson-test.mixarium.repl.co/", {"headersmethod": {"content-security-policyGET":, "connect-srcmode": 'selfcors'"}}) /* gosh, how do i get around CSP? */
.then(function(response) {
if (response.ok) {