diff --git a/assets/js/link-share.js b/assets/js/link-share.js
index 8e57875..fcad908 100644
--- a/assets/js/link-share.js
+++ b/assets/js/link-share.js
@@ -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")}}
\ No newline at end of file
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index d3efb97..a766f54 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -38,8 +38,7 @@
{{- end -}}
{{- if and (not (eq .Site.Params.shareSocial nil)) (.Site.Params.shareSocial) -}}
- {{ $linkShareJS := resources.Get "js/link-share.js" -}}
- {{ $linkshare := $linkShareJS | minify | fingerprint -}}
+ {{ $linkshare := resources.Get "js/link-share.js" | fingerprint -}}
{{- end -}}
{{ range .Params.custom_js -}}{{- end }}