pmndrs / use-cannon

👋💣 physics based hooks for @react-three/fiber
https://cannon.pmnd.rs
2.76k stars 155 forks source link

Usage of Logical OR Assignment Operator #334

Closed prarabdhb closed 2 years ago

prarabdhb commented 2 years ago

Hi, v4.6.0 introduced createMaterialFactory. The code uses a logical OR assignment operator which is only supported by Chrome 85 and above. Would it be possible to either transpile it, or maybe replace with a more browser compatible version of the code?

bjornstar commented 2 years ago

What browser is it not working in?