Fixed the IE11 version check (fixes #579)

This commit is contained in:
photonstorm 2014-03-16 00:39:42 +00:00
parent fee4d36b91
commit db88bd2f22
2 changed files with 3 additions and 3 deletions

View file

@ -60,7 +60,7 @@ Bug Fixes
* The Static, Kinematic and Dynamic consts that P2.Body uses were incorrect (fixes #563)
* Sprite.destroy would fail if it had an Arcade Physics body, now added.
* Group.getAt comparison updated (fixes #578)
* Fixed the IE11 version check (fixes #579)
Version 2.0.0 - "Aes Sedai" - March 13th 2014

View file

@ -579,12 +579,12 @@ Phaser.Device.prototype = {
{
this.silk = true;
}
else if (/Trident\/(\d+\.\d+); rv:(\d+\.\d+)/.test(ua))
else if (/Trident\/(\d+\.\d+)(.*)rv:(\d+\.\d+)/.test(ua))
{
this.ie = true;
this.trident = true;
this.tridentVersion = parseInt(RegExp.$1, 10);
this.ieVersion = parseInt(RegExp.$2, 10);
this.ieVersion = parseInt(RegExp.$3, 10);
}
// WebApp mode in iOS