This commit is contained in:
1bl4z3r
2023-12-17 13:29:11 +05:30
parent c65e39445f
commit 112c04a660
58 changed files with 0 additions and 2916 deletions

View File

@ -1,7 +0,0 @@
async function linkShare(t, u, s){
let shd = {title: t,text: s,url: u};
if(typeof navigator.canShare === "function" && navigator.canShare(shd)){
try {await navigator.share(shd);} catch (er) {console.error(er);}
}else if (navigator?.clipboard?.writeText){
try {await navigator.clipboard.writeText(u);} catch (err) {console.error(err);}
}else{console.log("Neither WebShare API nor CLipboard API is supported")}}