diff --git a/snippets/detectDeviceType.md b/snippets/detectDeviceType.md index 83fdc4061..6b7bf083d 100644 --- a/snippets/detectDeviceType.md +++ b/snippets/detectDeviceType.md @@ -1,6 +1,6 @@ ### detectDeviceType -Detects wether the website is being opened in a mobile device or a desktop/laptop. +Detects whether the website is being opened in a mobile device or a desktop/laptop. Use a regular expression to test the `navigator.userAgent` property to figure out if the device is a mobile device or a desktop/laptop.