Fixed CENTERX and CENTERY variables
This commit is contained in:
@@ -267,8 +267,9 @@
|
||||
|
||||
function builtinRead(x) {
|
||||
if (x === 'screen' || x === './screen.js') {
|
||||
const url = new URL('screen.js', window.location.href).href;
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open("GET", document.location.href + "screen.js", false);
|
||||
xhr.open("GET", url, false);
|
||||
xhr.send();
|
||||
if (xhr.status === 200) return xhr.responseText;
|
||||
else throw "Could not load screen.js";
|
||||
|
||||
Reference in New Issue
Block a user