Theme Files Update

This commit is contained in:
GitHub Action committed 2023-11-06 08:46:57 +00:00
1 parent dbfec60fde
commit 9be4cc1b9b
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
async function linkShare(t, u, s){
let shd = {title: t,text: s,url: u};
if(navigator.canShare(shd)){
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);}