Skip to content

Commit

Permalink
Fix for IE11 not supporting startsWith
Browse files Browse the repository at this point in the history
  • Loading branch information
karimnaaji committed Mar 11, 2020
1 parent d144fbc commit b09695c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/program_configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class CrossFadedConstantBinder implements UniformBinder {
}

getBinding(context: Context, location: WebGLUniformLocation, name: string): $Shape<Uniform<any>> {
return name.startsWith('u_pattern') ?
return name.substr(0, 9) === 'u_pattern' ?
new Uniform4f(context, location) :
new Uniform1f(context, location);
}
Expand Down

0 comments on commit b09695c

Please sign in to comment.