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
|
* blocks: register unsaved changes when the user edits a comment
|
||||||
* new Hindi translation, thanks, Barthdry!
|
* new Hindi translation, thanks, Barthdry!
|
||||||
* fixed bignums library and and made colors library faster, thanks, Brian!
|
* fixed bignums library and and made colors library faster, thanks, Brian!
|
||||||
* fixed setting the IDE language via a url parameter, thanks, Joan!
|
* gui: fixed setting the IDE language via a url parameter, thanks, Joan!
|
||||||
* reinstated JS-function control, disabled JS-functions by default
|
* 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
|
## 6.8.1
|
||||||
* **Notable Fixes:**
|
* **Notable Fixes:**
|
||||||
|
|
10
src/gui.js
10
src/gui.js
|
@ -3497,6 +3497,11 @@ IDE_Morph.prototype.settingsMenu = function () {
|
||||||
addPreference(
|
addPreference(
|
||||||
'JavaScript',
|
'JavaScript',
|
||||||
() => {
|
() => {
|
||||||
|
/*
|
||||||
|
if (!Process.prototype.enableJS) {
|
||||||
|
this.logout();
|
||||||
|
}
|
||||||
|
*/
|
||||||
Process.prototype.enableJS = !Process.prototype.enableJS;
|
Process.prototype.enableJS = !Process.prototype.enableJS;
|
||||||
this.currentSprite.blocksCache.operators = null;
|
this.currentSprite.blocksCache.operators = null;
|
||||||
this.currentSprite.paletteCache.operators = null;
|
this.currentSprite.paletteCache.operators = null;
|
||||||
|
@ -3504,7 +3509,10 @@ IDE_Morph.prototype.settingsMenu = function () {
|
||||||
},
|
},
|
||||||
Process.prototype.enableJS,
|
Process.prototype.enableJS,
|
||||||
'uncheck to disable support for\nnative JavaScript functions',
|
'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()) {
|
if (isRetinaSupported()) {
|
||||||
addPreference(
|
addPreference(
|
||||||
|
|
|
@ -1295,7 +1295,6 @@ SnapSerializer.prototype.loadInput = function (model, input, block, object) {
|
||||||
});
|
});
|
||||||
input.fixLayout();
|
input.fixLayout();
|
||||||
} else if (model.tag === 'block' || model.tag === 'custom-block') {
|
} 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));
|
block.replaceInput(input, this.loadBlock(model, true, object));
|
||||||
} else if (model.tag === 'color') {
|
} else if (model.tag === 'color') {
|
||||||
input.setColor(this.loadColor(model.contents));
|
input.setColor(this.loadColor(model.contents));
|
||||||
|
|
Ładowanie…
Reference in New Issue