From e2c7e551d8f1dadb41c50c9f50f6cce405f41cdb Mon Sep 17 00:00:00 2001 From: Kai Ninomiya Date: Tue, 1 Oct 2024 12:19:34 -0700 Subject: [PATCH] apply suggestion --- sample/particles/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample/particles/main.ts b/sample/particles/main.ts index 1ac2726a..190bcf7a 100644 --- a/sample/particles/main.ts +++ b/sample/particles/main.ts @@ -356,7 +356,7 @@ function getHdrFolderName() { } if ( simulationParams.toneMappingMode === 'extended' && - context.getConfiguration().toneMapping.mode !== 'extended' + context.getConfiguration().toneMapping?.mode !== 'extended' ) { return "HDR settings ⚠️ Browser doesn't support HDR canvas"; }