Bug Fix: Failing to Load Plugins + Tutorials Not Playing
This commit is contained in:
1 parent
ad21aa8eb1
commit
70bcb9580f
2 files changed
+9
-2
No files matched your search
@@ -3,6 +3,7 @@
|
||||
"menuItems": [
|
||||
{
|
||||
"action": "Play Tutorial",
|
||||
"actionProject": "Foundations",
|
||||
"label": "Play",
|
||||
"iconPathOn": "play",
|
||||
"iconPathOff": "play",
|
||||
@@ -10,6 +11,7 @@
|
||||
},
|
||||
{
|
||||
"action": "Resume Tutorial",
|
||||
"actionProject": "Foundations",
|
||||
"label": "Resume",
|
||||
"iconPathOn": "resume",
|
||||
"iconPathOff": "resume",
|
||||
@@ -38,6 +40,7 @@
|
||||
},
|
||||
{
|
||||
"action": "Reset Tutorial Progress",
|
||||
"actionProject": "Foundations",
|
||||
"askConfirmation": true,
|
||||
"confirmationLabel": "Confirm to Reset",
|
||||
"label": "Reset Tutorial Progress",
|
||||
|
||||
@@ -142,8 +142,12 @@ function newFoundationsFunctionLibraryUiObjectsFromNodes() {
|
||||
let project = "Foundations"
|
||||
try {
|
||||
let config = JSON.parse(pluginFile.config)
|
||||
project = config.project
|
||||
name = config.fileName
|
||||
if (config.project !== undefined) {
|
||||
project = config.project
|
||||
}
|
||||
if (config.fileName !== undefined) {
|
||||
name = config.fileName
|
||||
}
|
||||
} catch (err) { }
|
||||
|
||||
httpRequest(undefined, 'LoadPlugin' + '/' + project + '/' + pluginType + '/' + name + '.json', onFileReceived)
|
||||
|
||||
Reference in new issue
Block a user