mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
Merge pull request #810 from jflowers45/dev
Update Silk UA test to avoid Safari conflict
This commit is contained in:
commit
cd4200a902
1 changed files with 6 additions and 4 deletions
|
@ -588,10 +588,6 @@ Phaser.Device.prototype = {
|
|||
{
|
||||
this.safari = true;
|
||||
}
|
||||
else if (/Silk/.test(ua))
|
||||
{
|
||||
this.silk = true;
|
||||
}
|
||||
else if (/Trident\/(\d+\.\d+)(.*)rv:(\d+\.\d+)/.test(ua))
|
||||
{
|
||||
this.ie = true;
|
||||
|
@ -600,6 +596,12 @@ Phaser.Device.prototype = {
|
|||
this.ieVersion = parseInt(RegExp.$3, 10);
|
||||
}
|
||||
|
||||
//Silk gets its own if clause because its ua also contains 'Safari'
|
||||
if (/Silk/.test(ua))
|
||||
{
|
||||
this.silk = true;
|
||||
}
|
||||
|
||||
// WebApp mode in iOS
|
||||
if (navigator['standalone'])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue