web-padawan / vanilla-colorful

A tiny color picker custom element for modern web apps (2.7 KB) 🎨
https://web-padawan.github.io/vanilla-colorful/
MIT License
784 stars 29 forks source link

refactor: use substring instead of substr #90

Closed web-padawan closed 1 year ago

web-padawan commented 1 year ago

Description

Same as https://github.com/omgovich/react-colorful/pull/182

Removed the substr method usage, as it's deprecated: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr