Add special case for DEV Android app (#16382)

This commit is contained in:
Fernando Valverde 2022-02-02 15:25:14 -06:00 committed by GitHub
parent e9343e2794
commit b1c0a8d631
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,6 +22,13 @@ function removeFromDOM() {
}
function androidTargetIntent() {
if (navigator.userAgent === 'DEV-Native-android') {
// The DEV Android app has been decommissioned and it kept a custom UA.
// Instead of a custom intent we are redirecting directly to the Play Store
// because the app isn't capable of handling these
return FOREM_GOOGLE_PLAY_URL;
}
return (
'intent://scan/#Intent;' +
'action=android.intent.action.SEND;' +