matthewhudson / current-device

📱 The easiest way to write conditional CSS and/or JavaScript based on device operating system (iOS, Android, Blackberry, Windows, Firefox OS, MeeGo), orientation (Portrait vs. Landscape), and type (Tablet vs. Mobile).
https://matthewhudson.github.io/current-device/
MIT License
3.94k stars 588 forks source link

feature: Add the initInsertCssClassName method #376

Open 814704261 opened 1 month ago

814704261 commented 1 month ago

Modify

Add the initInsertCssClassName method

Purpose

In browser debugging mode, if the window size changes, the user can call 'initInsertCssClassName' to update the current className