mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 14:10:53 +03:00
try android share before navigator.share
This commit is contained in:
@@ -250,7 +250,9 @@ module.exports = function(state, emit, archive) {
|
|||||||
|
|
||||||
async function share(event) {
|
async function share(event) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
if (state.capabilities.share) {
|
if (platform() === 'android') {
|
||||||
|
Android.shareUrl(archive.url);
|
||||||
|
} else {
|
||||||
try {
|
try {
|
||||||
await navigator.share({
|
await navigator.share({
|
||||||
title: state.translate('-send-brand'),
|
title: state.translate('-send-brand'),
|
||||||
@@ -263,8 +265,6 @@ module.exports = function(state, emit, archive) {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
// ignore
|
// ignore
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
Android.shareUrl(archive.url);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user