sunrize 1.0.47 → 1.0.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sunrize",
3
3
  "productName": "Sunrize X3D Editor",
4
- "version": "1.0.47",
4
+ "version": "1.0.48",
5
5
  "description": "A Multi Platform X3D Editor",
6
6
  "homepage": "https://create3000.github.io/sunrize/",
7
7
  "author": "Holger Seelig",
@@ -121,13 +121,18 @@ module .exports = new class Library extends Dialog
121
121
 
122
122
  const
123
123
  HTMLSupport = X3D .require ("x_ite/Parser/HTMLSupport"),
124
- input = this .input .val () .toUpperCase () .trim (),
125
- ConcreteNode = this .browser .getConcreteNode (HTMLSupport .getNodeTypeName (input))
124
+ input = this .input .val () .toUpperCase () .trim ();
125
+
126
+ try
127
+ {
128
+ const ConcreteNode = this .browser .getConcreteNode (HTMLSupport .getNodeTypeName (input))
126
129
 
127
- if (ConcreteNode)
128
130
  this .createNode (ConcreteNode .typeName, ConcreteNode .componentName)
129
- else
131
+ }
132
+ catch
133
+ {
130
134
  this .createNode (first .text (), component .attr ("name"))
135
+ }
131
136
  }
132
137
 
133
138
  update ()