mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-13 18:58:53 +01:00
Fix running android specific code on web
This commit is contained in:
parent
51134f30bc
commit
cef0f4dd88
1 changed files with 4 additions and 2 deletions
|
@ -179,8 +179,10 @@ class ShareHandler {
|
|||
duration: k.snackBarDurationNormal,
|
||||
));
|
||||
|
||||
final textShare = AndroidTextShare(share.url!);
|
||||
textShare.share();
|
||||
if (platform_k.isAndroid) {
|
||||
final textShare = AndroidTextShare(share.url!);
|
||||
textShare.share();
|
||||
}
|
||||
} catch (e, stackTrace) {
|
||||
_log.shout(
|
||||
"[_shareFileAsLink] Failed while CreateLinkShare", e, stackTrace);
|
||||
|
|
Loading…
Reference in a new issue