Skip to content

jeankassio/IsSmartTv.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IsSmartTV.js

IsSmartTV.js is a lightweight JavaScript plugin crafted to detect SmartTVs based on the user agent of the device. With a simple and swift function call, you can determine whether the current device is a SmartTV, enabling tailored user experiences.

Installation:

Include the IsSmartTV.js script directly in your HTML page:

<script src="path/to/IsSmartTv.min.js"></script>

How to Use:

// Check if the device is a SmartTV
if(is.SmartTV()){
    console.log('This is a SmartTV device!');
}else{
    console.log('This is not a SmartTV device.');
}

Compatibility:

IsSmartTV.js relies on user agent detection and is compatible with major browsers, including Chrome, Firefox, Safari, and Edge. Please ensure compatibility with your target browser.

Contribution:

Contributions are welcome! If you find a bug or have suggestions for improvements, feel free to open an issue or submit a pull request.

License:

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

Check if a connected device is a SmartTV

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published