Update Workspace.js
This commit is contained in:
1 parent
b5d3971ee0
commit
a4cc64e9cd
1 file changed
+2
-1
@@ -83,9 +83,10 @@ function newWorkspace () {
|
||||
|
||||
function initialize () {
|
||||
try {
|
||||
let reset = window.localStorage.getItem('Reset')
|
||||
let savedWorkspace = window.localStorage.getItem(CANVAS_APP_NAME + '.' + 'Workspace')
|
||||
|
||||
if (savedWorkspace === null) {
|
||||
if (savedWorkspace === null || reset !== null) {
|
||||
thisObject.workspaceNode = getWorkspace()
|
||||
} else {
|
||||
thisObject.workspaceNode = JSON.parse(savedWorkspace)
|
||||
|
||||
Reference in new issue
Block a user