Skip to content

Commit

Permalink
Fix for IE11 not supporting startsWith (mapbox#9409)
Browse files Browse the repository at this point in the history
  • Loading branch information
karimnaaji authored and mike-unearth committed Mar 18, 2020
1 parent 2f946d5 commit 7351de8
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 7351de8

Please sign in to comment.