mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:42:53 +00:00
change test for navigator.share - fixes #13054
this testing for navigator.share is recommended from mozilla. tested with firefox linux, android and vivaldi on linux.
This commit is contained in:
parent
d951d49193
commit
2294d6ffc3
1 changed files with 3 additions and 1 deletions
|
@ -445,7 +445,9 @@ $(document).ready(function () {
|
|||
});
|
||||
});
|
||||
|
||||
if (!navigator.canShare || !navigator.canShare()) {
|
||||
try {
|
||||
navigator.canShare({ url: "#", });
|
||||
} catch(err) {
|
||||
$('.button-browser-share').hide();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue