@gnsx/three 0.185.2 → 0.185.3

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.
@@ -539,6 +539,14 @@ class Inspector extends RendererInspector {
539
539
 
540
540
  function getItem( id ) {
541
541
 
542
+ // WITH_GENESYS
543
+ if ( globalThis.localStorage === undefined ) {
544
+
545
+ return {};
546
+
547
+ }
548
+ // !WITH_GENESYS
549
+
542
550
  const data = JSON.parse( localStorage.getItem( 'threejs-inspector' ) || '{}' );
543
551
 
544
552
  if ( data.version !== REVISION ||
@@ -556,6 +564,14 @@ function getItem( id ) {
556
564
 
557
565
  function setItem( id, state ) {
558
566
 
567
+ // WITH_GENESYS
568
+ if ( globalThis.localStorage === undefined ) {
569
+
570
+ return;
571
+
572
+ }
573
+ // !WITH_GENESYS
574
+
559
575
  const data = JSON.parse( localStorage.getItem( 'threejs-inspector' ) || '{}' );
560
576
 
561
577
  if ( state === null ) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnsx/three",
3
- "version": "0.185.2",
3
+ "version": "0.185.3",
4
4
  "description": "JavaScript 3D library",
5
5
  "type": "module",
6
6
  "main": "./build/three.cjs",