Merge pull request #13070 from xundeenergie/fix-share-via
change test for navigator.share - fixes #13054
This commit is contained in:
commit
d2429b1096
|
@ -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