Skip to content

Commit

Permalink
4.6.1
Browse files Browse the repository at this point in the history
* change logix back to not allow deletion of other instance states (other then 0_userdata.0)
  • Loading branch information
Apollon77 committed May 10, 2020
1 parent 2779ba2 commit 084ca44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ And then call "npm run build".
- ...

## Changelog
### 4.6.0 (2020-04-24)
### 4.6.1 (2020-05-1x)
* (bluefox) Updated blockly to 3.20200402.1
* (bluefox) Added to blockly the switch/case block. Warning do not use it in production, because license request from author still pending.
* (bluefox) Added to blockly the switch/case block.
* (Mic-M) fix log crash
* (Apollon77) Add new Sentry key and exclude user script exceptions
* (Garfonso) Several fixes and optimizations for Mirroring functionality
* (Apollon77) add support for 0_userdata.0 to createState and deleteState

### 4.5.1 (2020-04-17)
* (Apollon77) Nodejs 10 is new minimum Version!
Expand Down
2 changes: 1 addition & 1 deletion lib/sandbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -1918,7 +1918,7 @@ function sandBox(script, name, verbose, debug, context) {
sandbox.verbose && sandbox.log('deleteState(id=' + id + ')', 'debug');

let found = false;
if ((id.match(/^javascript\.\d+\./) || id.startsWith('0_userdata.0.')) && objects[id]) {
if (id.startsWith('0_userdata.0.') && objects[id]) {
found = true;
delete objects[id];
if (states[id]) delete states[id];
Expand Down

0 comments on commit 084ca44

Please sign in to comment.