Fixed CENTERX and CENTERY variables

This commit is contained in:
2025-12-25 19:50:13 +00:00
parent 8ca6d8d0e1
commit a0c603ee7a
2 changed files with 28 additions and 13 deletions

View File

@@ -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";