|
|
|
|
@ -1,3 +1,4 @@
|
|
|
|
|
import request from "../../request.js";
|
|
|
|
|
/////////////////////////////////////
|
|
|
|
|
/// Stand alone lalolib base functions
|
|
|
|
|
////////////////////////////////////
|
|
|
|
|
@ -1404,7 +1405,7 @@ Lalolab.prototype.import = function ( script, callback ) {
|
|
|
|
|
function importLaloScript ( script ) {
|
|
|
|
|
// load a script in lalolib language in the current Lab worker
|
|
|
|
|
var xhr = new XMLHttpRequest();
|
|
|
|
|
xhr.open('GET', script, false);
|
|
|
|
|
xhr.open('GET', request + script, false);
|
|
|
|
|
xhr.send();
|
|
|
|
|
var cmd = xhr.responseText;
|
|
|
|
|
return lalo(cmd);
|
|
|
|
|
@ -26392,7 +26393,7 @@ function loadmodel ( url, format ) {
|
|
|
|
|
|
|
|
|
|
// load a remote file (from same web server only...)
|
|
|
|
|
var xhr = new XMLHttpRequest();
|
|
|
|
|
xhr.open('GET', url, false); // false = synchronous
|
|
|
|
|
xhr.open('GET', request + url, false); // false = synchronous
|
|
|
|
|
xhr.responseType = 'blob';
|
|
|
|
|
xhr.send(null);
|
|
|
|
|
|
|
|
|
|
@ -26418,7 +26419,7 @@ function loaddata ( url, format ) {
|
|
|
|
|
|
|
|
|
|
// load a remote file (from same web server only...)
|
|
|
|
|
var xhr = new XMLHttpRequest();
|
|
|
|
|
xhr.open('GET', url, false); // false = synchronous
|
|
|
|
|
xhr.open('GET', request + url, false); // false = synchronous
|
|
|
|
|
xhr.responseType = 'blob';
|
|
|
|
|
xhr.send(null);
|
|
|
|
|
|
|
|
|
|
|