I'm not 100% sure why `navigator.platform` was added. I'll try and find out. 

Good suggestion on checking for Android here as well. This condition only returns true because it comes after the Android check earlier on. But if the order was changed in the code Firefox OS devices would be incorrectly identified.