#304: Fixed device detection code: Windows Phone 8.1 was detected as Android and iPhone.