Skip to content

Commit

Permalink
chore: check for windows and linux os
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienne-deriv committed Jul 15, 2024
1 parent 08096c4 commit 3af7da5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/scripts/storeRedirect.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@
window.location.href = "market://details?id=com.deriv.ct";
}
} else if (app === 'partnershub') {
if (/iP(hone|od|ad)|Mac/.test(navigator.userAgent)) {
if (/iP(hone|od|ad)|mac(intosh|intel|ppc|68k|os)/i.test(navigator.userAgent)) {
window.location.href = "https://apps.apple.com/us/app/deriv-partners-academy/id6478279499"
} else if (/win(32|64|dows|ce)|linux/i.test(navigator.userAgent)) {
window.location.href = " https://play.google.com/store/apps/details?id=com.deriv.partneracademy"
} else {
window.location.href = "market://details?id=com.deriv.partneracademy";
}
Expand Down

0 comments on commit 3af7da5

Please sign in to comment.