diff --git a/snippets/detectDeviceType.md b/snippets/detectDeviceType.md index 71da1349f..83fdc4061 100644 --- a/snippets/detectDeviceType.md +++ b/snippets/detectDeviceType.md @@ -1,6 +1,6 @@ ### detectDeviceType -Detects weather the website is being opened in a mobile device or a desktop/laptop. +Detects wether 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.