Skip to content

Adding Device checks (Mobile/Tablet)#120

Open
anishbvoice wants to merge 2 commits into
bazaarvoice:masterfrom
anishbvoice:add-mobile-check
Open

Adding Device checks (Mobile/Tablet)#120
anishbvoice wants to merge 2 commits into
bazaarvoice:masterfrom
anishbvoice:add-mobile-check

Conversation

@anishbvoice

Copy link
Copy Markdown
Collaborator

This PR is for Adding device check in to the library.
These two functions are repeatedly getting written in all the swat applications.
We can keep it in the same place.

Usage:
var Device = require('bv-ui-core/lib/cookie');
Device.isMobile();
Device.isTablet();

@anishbvoice anishbvoice changed the title Adding Device checks Adding Device checks (Mobile/Tablet) Jun 22, 2022
@sonarqube-devops-platform

Copy link
Copy Markdown

Comment thread lib/checkDevice/README.md
@@ -0,0 +1,10 @@
#checkDevice
This is a small method to check whether the device user is using Mobile/Tablet.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please suggest better lines.
Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant