use android share menu when copying a link

This commit is contained in:
Til Schmitter 2026-06-19 23:12:34 +02:00
parent 4ce26d337a
commit b2b88830a5

View file

@ -10917,7 +10917,18 @@ var rcm = (function () {
case 'pla': play('f-' + selFile.id); break;
case 'txt': showfile.show(selFile.name); break;
case 'md': location = selFile.path + (has(selFile.path, '?') ? '&v' : '?v'); break;
case 'cpl': cliptxt(selFile.url, function () { toast.ok(2, L.clipped) }); break;
case 'cpl':
if(navigator.canShare){
let shareData = {
title: selFile.name,
url: selFile.url,
};
if(navigator.canShare(shareData))
navigator.share(shareData)
}
else
cliptxt(selFile.url, function () { toast.ok(2, L.clipped) });
break;
case 'dl': ebi('seldl').click(); break;
case 'zip': ebi('selzip').click(); break;
case 'del': fileman.delete(); break;