mirror of
https://github.com/timvisee/send.git
synced 2026-03-05 13:39:54 -05:00
restrict "share" to mobile, fixes #1505
Co-authored-by: timvisee <tim@visee.me>
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user