From c2f1ae271b99d3908a9e9be57072ca79e17a410e Mon Sep 17 00:00:00 2001 From: Jason Cooke Date: Sun, 26 May 2019 19:02:43 +1200 Subject: [PATCH] docs: fix typo --- snippets/detectDeviceType.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.