try android share before navigator.share

This commit is contained in:
Danny Coates 2019-03-11 10:43:32 -07:00
parent 03b86cf772
commit d3438a52ac
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB

View file

@ -250,7 +250,9 @@ module.exports = function(state, emit, archive) {
async function share(event) {
event.stopPropagation();
if (state.capabilities.share) {
if (platform() === 'android') {
Android.shareUrl(archive.url);
} else {
try {
await navigator.share({
title: state.translate('-send-brand'),
@ -263,8 +265,6 @@ module.exports = function(state, emit, archive) {
} catch (e) {
// ignore
}
} else {
Android.shareUrl(archive.url);
}
}
};