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
|
@ -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 New Issue
Block a user