disabled loading (projects with) JS-functions, unless the user accepts

pull/95/head
jmoenig 2021-06-09 18:36:20 +02:00
rodzic 8fe8d38bec
commit 5ad05b805c
1 zmienionych plików z 8 dodań i 10 usunięć

Wyświetl plik

@ -1164,17 +1164,15 @@ SnapSerializer.prototype.loadBlock = function (model, isReporter, object) {
model.attributes['var']
);
} else {
/*
// disable loading JavaScript functions, commented out for now
if (model.attributes.s === 'reportJSFunction' &&
!Process.prototype.enableJS) {
if (window.confirm('enable JavaScript?')) {
Process.prototype.enableJS = true;
} else {
throw new Error('JavaScript is not enabled');
// disable loading JavaScript functions
if (model.attributes.s === 'reportJSFunction' &&
!Process.prototype.enableJS) {
if (window.confirm('enable JavaScript?')) {
Process.prototype.enableJS = true;
} else {
throw new Error('JavaScript is not enabled');
}
}
}
*/
block = SpriteMorph.prototype.blockForSelector(model.attributes.s);
migration = SpriteMorph.prototype.blockMigrations[
model.attributes.s