Theme Files Update
This commit is contained in:
1 parent
bbc0089b64
commit
dbfec60fde
2 files changed
+4
-5
No files matched your search
@@ -1,7 +1,7 @@
|
||||
async function linkShare(t, u, s){
|
||||
let data = {title: t,text: s,url: u};
|
||||
if(navigator.canShare(data)){
|
||||
try {await navigator.share(data);} catch (er) {console.error(er);}
|
||||
let shd = {title: t,text: s,url: u};
|
||||
if(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")}}
|
||||
Reference in new issue
Block a user