react-reduce-motion icon indicating copy to clipboard operation
react-reduce-motion copied to clipboard

Fix/crashes on safari

Open niallpaterson opened this issue 3 years ago • 0 comments

This pull request fixes https://github.com/infiniteluke/react-reduce-motion/issues/8

It should no longer cause crashing in safari <= 13

Safari 14 implements both the addListener and addEventListener apis, so we only use the older addListener if the browser has addListener but not addEventListener.

Thanks!

niallpaterson avatar Jul 05 '21 13:07 niallpaterson