Skip to content

Commit

Permalink
Changed localstorage handling to avoid persisting the layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
RichoM committed Sep 12, 2020
1 parent 3fdaf6c commit 06fb81f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor/ide.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ class Output {
let ui = {
robotName: localStorage["webots.robotName"] || "",
outputPath: localStorage["webots.outputPath"] || "",
layout: JSON.parse(localStorage["webots.layout"] || "null"),
//layout: JSON.parse(localStorage["webots.layout"] || "null"),
blockly: JSON.parse(localStorage["webots.blockly"] || "null"),
};
setUIState(ui);
Expand All @@ -517,7 +517,7 @@ class Output {
let ui = getUIState();
localStorage["webots.robotName"] = ui.robotName;
localStorage["webots.outputPath"] = ui.outputPath;
localStorage["webots.layout"] = JSON.stringify(ui.layout);
//localStorage["webots.layout"] = JSON.stringify(ui.layout);
localStorage["webots.blockly"] = JSON.stringify(ui.blockly);
}

Expand Down

0 comments on commit 06fb81f

Please sign in to comment.