apache/cordova-plugin-device — pull request #28 by BigstickCarpet (2014-12-11 20:41:24+00:00)
Title: Internet Explorer browser support

Added support for Internet Explorer and other browsers when using the new "browser" platform in Cordova 4.

Chrome, Safari, and Firefox were already supported, but when using IE or any other browser an error would occur because the user agent string wasn't recognized.

I added specific logic to parse Internet Explorer's user agent string. Note that IE 11's user agent string doesn't include "MSIE", so I search for "Trident" instead.

I also fixed the bug that caused an error if the user agent wasn't recognized, so if a browser other than Chrome, Safari, Firefox, or IE is used, the plugin will still work. It just won't have the `device.model` or `device.version` set.