sonner icon indicating copy to clipboard operation
sonner copied to clipboard

addEventListener is not implemented in older versions of Safari.

Open anson0370 opened this issue 10 months ago • 0 comments

Describe the feature / bug 📝:

Strictly speaking, it's not a bug but a compatibility issue. window.matchMedia().addEventListener does not exist in Safari versions less than 5.0. next-themes has addressed this issue by using the now deprecated addListener API. https://github.com/pacocoursey/next-themes/pull/24 I'm not sure if you think this issue needs to be resolved?

Steps to reproduce the bug 🔁:

  1. Use sonner in Safari versions less than 5.0.

anson0370 avatar Apr 05 '24 06:04 anson0370