From b09695c5e7204bd4610f903db5cbf59c35393391 Mon Sep 17 00:00:00 2001 From: Karim Naaji Date: Wed, 11 Mar 2020 16:05:27 -0700 Subject: [PATCH] Fix for IE11 not supporting startsWith --- src/data/program_configuration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/program_configuration.js b/src/data/program_configuration.js index d1c7dd5a932..a6d37c0d20e 100644 --- a/src/data/program_configuration.js +++ b/src/data/program_configuration.js @@ -144,7 +144,7 @@ class CrossFadedConstantBinder implements UniformBinder { } getBinding(context: Context, location: WebGLUniformLocation, name: string): $Shape> { - return name.startsWith('u_pattern') ? + return name.substr(0, 9) === 'u_pattern' ? new Uniform4f(context, location) : new Uniform1f(context, location); }