kopia lustrzana https://github.com/backface/turtlestitch
automatically logout when the user enablesJavaScript
commented out for nowpull/95/head
rodzic
4e6d7b4f22
commit
e3331c370a
|
@ -18,8 +18,9 @@
|
|||
* blocks: register unsaved changes when the user edits a comment
|
||||
* new Hindi translation, thanks, Barthdry!
|
||||
* fixed bignums library and and made colors library faster, thanks, Brian!
|
||||
* fixed setting the IDE language via a url parameter, thanks, Joan!
|
||||
* reinstated JS-function control, disabled JS-functions by default
|
||||
* gui: fixed setting the IDE language via a url parameter, thanks, Joan!
|
||||
* threads, gui, objects, byob, store: reinstated JS-function control, disabled JS-functions by default
|
||||
* gui, store: automatically logout when the user enablesJavaScript, commented out for now
|
||||
|
||||
## 6.8.1
|
||||
* **Notable Fixes:**
|
||||
|
|
10
src/gui.js
10
src/gui.js
|
@ -3497,6 +3497,11 @@ IDE_Morph.prototype.settingsMenu = function () {
|
|||
addPreference(
|
||||
'JavaScript',
|
||||
() => {
|
||||
/*
|
||||
if (!Process.prototype.enableJS) {
|
||||
this.logout();
|
||||
}
|
||||
*/
|
||||
Process.prototype.enableJS = !Process.prototype.enableJS;
|
||||
this.currentSprite.blocksCache.operators = null;
|
||||
this.currentSprite.paletteCache.operators = null;
|
||||
|
@ -3504,7 +3509,10 @@ IDE_Morph.prototype.settingsMenu = function () {
|
|||
},
|
||||
Process.prototype.enableJS,
|
||||
'uncheck to disable support for\nnative JavaScript functions',
|
||||
'check to support\nnative JavaScript functions'
|
||||
'check to support\nnative JavaScript functions' /* +
|
||||
'.\n' +
|
||||
'NOTE: You will have to manually\n' +
|
||||
'sign in again to access your account.' */
|
||||
);
|
||||
if (isRetinaSupported()) {
|
||||
addPreference(
|
||||
|
|
|
@ -1295,7 +1295,6 @@ SnapSerializer.prototype.loadInput = function (model, input, block, object) {
|
|||
});
|
||||
input.fixLayout();
|
||||
} else if (model.tag === 'block' || model.tag === 'custom-block') {
|
||||
// block.silentReplaceInput(input, this.loadBlock(model, true, object));
|
||||
block.replaceInput(input, this.loadBlock(model, true, object));
|
||||
} else if (model.tag === 'color') {
|
||||
input.setColor(this.loadColor(model.contents));
|
||||
|
|
Ładowanie…
Reference in New Issue