mirror of
https://github.com/timvisee/send.git
synced 2025-10-04 10:09:17 +02:00
restrict "share" to mobile, fixes #1505
This commit is contained in:
parent
fc8673b87a
commit
1ec2b995b0
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