restrict "share" to mobile, fixes #1505

This commit is contained in:
Danny Coates
2020-07-31 08:36:27 -07:00
parent fc8673b87a
commit 1ec2b995b0
2 changed files with 9 additions and 3 deletions

View File

@@ -142,12 +142,16 @@ function openLinksInNewTab(links, should = true) {
function browserName() {
try {
// order of these matters
if (/firefox/i.test(navigator.userAgent)) {
return 'firefox';
}
if (/edge/i.test(navigator.userAgent)) {
return 'edge';
}
if (/edg/i.test(navigator.userAgent)) {
return 'edgium';
}
if (/trident/i.test(navigator.userAgent)) {
return 'ie';
}