diff --git a/assets/js/link-share.js b/assets/js/link-share.js
index fcad908..674f400 100644
--- a/assets/js/link-share.js
+++ b/assets/js/link-share.js
@@ -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);}
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index a766f54..f44d642 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -38,7 +38,7 @@
{{- end -}}
{{- if and (not (eq .Site.Params.shareSocial nil)) (.Site.Params.shareSocial) -}}
- {{ $linkshare := resources.Get "js/link-share.js" | fingerprint -}}
+ {{ $linkshare := resources.Get "js/link-share.js" | minify | fingerprint -}}
{{- end -}}
{{ range .Params.custom_js -}}{{- end }}