Expand device support and modernize DOM logic#392
Conversation
- Add support for visionOS, ChromeOS, and Linux. - Expand television detection with Smart TV platforms and consoles. - Refactor addClass/removeClass/hasClass to use classList API. - Update tests and documentation. Co-authored-by: matthewhudson <320194+matthewhudson@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
- Add support for visionOS, ChromeOS, and Linux. - Expand television detection with Smart TV platforms and consoles. - Refactor addClass/removeClass/hasClass to use classList API. - Update tests and documentation. Co-authored-by: matthewhudson <320194+matthewhudson@users.noreply.github.com>
- Add support for visionOS, ChromeOS, and Linux. - Expand television detection with Smart TV platforms and consoles. - Refactor addClass/removeClass/hasClass to use classList API. - Update tests and documentation. Co-authored-by: matthewhudson <320194+matthewhudson@users.noreply.github.com>
I have modernized the
current-devicelibrary by adding support for several modern platforms and refactoring the internal DOM manipulation logic.Key Improvements:
device.visionos()and related CSS classes. Refinedipad()andmacos()to correctly exclude Vision Pro.chromeosandlinux.televisionDevicesto includetizen,webos,playstation,xbox, andnintendo.classNameto the safer and more efficientclassListAPI.Comprehensive tests have been added to verify all new detections and ensure no regressions for existing platforms.
PR created automatically by Jules for task 12977527891009333807 started by @matthewhudson