From bb3ba220610c3091e41ae334c12ebe160816c373 Mon Sep 17 00:00:00 2001 From: zplata Date: Fri, 15 Dec 2023 18:29:47 +0000 Subject: [PATCH] remove optional chaining added in renderer.js Downstream react storybook did not like the optional chaining added here. Changing it just to be safe Diffs= 2489cb2b5 remove optional chaining added in renderer.js (#6366) Co-authored-by: Zachary Plata --- .rive_head | 2 +- wasm/js/renderer.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.rive_head b/.rive_head index 324d1b5b..2868f0c2 100644 --- a/.rive_head +++ b/.rive_head @@ -1 +1 @@ -eb8e0de93a7fed062b29c524a5ff7aabbe7f7711 +2489cb2b55780cae9d636e8c8e6a2da1afa15108 diff --git a/wasm/js/renderer.js b/wasm/js/renderer.js index a6e8ae21..4ca66f7e 100644 --- a/wasm/js/renderer.js +++ b/wasm/js/renderer.js @@ -122,7 +122,7 @@ const offscreenWebGL = new (function () { gl.shaderSource(shader, sourceCode); gl.compileShader(shader); const log = gl.getShaderInfoLog(shader); - if (log?.length > 0) { + if ((log || "").length > 0) { throw log; } gl.attachShader(program, shader);