@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 ) {
|