mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-07 22:50:53 +03: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