Skip to content

Commit db88bd2

Browse files
committed
Fixed the IE11 version check (fixes phaserjs#579)
1 parent fee4d36 commit db88bd2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Bug Fixes
6060
* The Static, Kinematic and Dynamic consts that P2.Body uses were incorrect (fixes #563)
6161
* Sprite.destroy would fail if it had an Arcade Physics body, now added.
6262
* Group.getAt comparison updated (fixes #578)
63-
63+
* Fixed the IE11 version check (fixes #579)
6464

6565

6666
Version 2.0.0 - "Aes Sedai" - March 13th 2014

src/system/Device.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,12 +579,12 @@ Phaser.Device.prototype = {
579579
{
580580
this.silk = true;
581581
}
582-
else if (/Trident\/(\d+\.\d+); rv:(\d+\.\d+)/.test(ua))
582+
else if (/Trident\/(\d+\.\d+)(.*)rv:(\d+\.\d+)/.test(ua))
583583
{
584584
this.ie = true;
585585
this.trident = true;
586586
this.tridentVersion = parseInt(RegExp.$1, 10);
587-
this.ieVersion = parseInt(RegExp.$2, 10);
587+
this.ieVersion = parseInt(RegExp.$3, 10);
588588
}
589589

590590
// WebApp mode in iOS

0 commit comments

Comments
 (0)