LeaVerou / multirange

A tiny polyfill for HTML5 multi-handle sliders
http://projects.verou.me/multirange/
MIT License
607 stars 82 forks source link

Made polyfill not apply on SSR #48

Closed totalolage closed 4 years ago

totalolage commented 4 years ago

This was preventing the NPM package from working with my NEXT project.

totalolage commented 4 years ago

Thanks for the quick response. Unfortunately, using optional chaining here would make it throw on many of the supported browsers.

Also, if you don't include typeof self === "undefined", it can still throw in your environment.

Sorry about that, I've so far only worked on bigger projects that get Babeled. Force of habit.

LeaVerou commented 4 years ago

Merged, thanks!