restrict "share" to mobile, fixes #1505
Co-authored-by: timvisee <tim@visee.me>
This commit is contained in:
parent
189f4cfb9b
commit
3631bc8f39
2 changed files with 9 additions and 3 deletions
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue