Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing detection for many Kindle Fire devices
The previous regex to detect Kindle Fire devices is incomplete, so it can only detect Kindle Fire (1st Gen) and Kindle Fire HD 7 (2nd Gen). The reason why is that it uses a device specific identifier, which is referenced as Build Model in the document. We can fix this problem by using the more generalized regex to detect many other Kindle Fire devices. The regex is from the official document, but with a little tweaking for simplification. The original regex is for not only detecting the devices but also extracting Build Models and version number of the browser, which we do not need to do them. https://docs.aws.amazon.com/silk/latest/developerguide/detecting-silk-ua.html
- Loading branch information