Skip to content

Commit

Permalink
Update config.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
kmeps4 authored Feb 20, 2024
1 parent 674b739 commit e5fabfe
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,18 @@ function DetectFirmwareVersion() //function by kameleon :)
return ps4_6_50;
}

if (UA == "7.01" || UA == "7.02" || UA == "7.50" || UA == "7.51" || UA == "7.55" || UA == "8.00" || UA == "8.01" || UA == "8.03" || UA == "8.50" || UA == "8.51")
if (UA == "7.01" || UA == "7.02" || UA == "7.50" || UA == "7.51" || UA == "7.55" || UA == "8.00" || UA == "8.01" || UA == "8.03")
{
return ps4_8_03;
}

//on 9.00 Fw detection changed to laystation instead of regular Playstation
UA = navigator.userAgent.substring(navigator.userAgent.indexOf('5.0 (') + 19, navigator.userAgent.indexOf(') Apple')).replace("layStation 4/","");


if (UA == "8.50" || UA == "8.51")
{
return ps4_8_03;
}
if (UA == "9.00" || UA == "9.03" || UA == "9.04" || UA == "9.50" || UA == "9.51" || UA == "9.60")
{
return ps4_9_00;
Expand All @@ -97,4 +100,4 @@ function DetectFirmwareVersion() //function by kameleon :)

}

export let target = DetectFirmwareVersion();
export let target = DetectFirmwareVersion();

0 comments on commit e5fabfe

Please sign in to comment.