Merge pull request #13070 from xundeenergie/fix-share-via

change test for navigator.share - fixes #13054
This commit is contained in:
Hypolite Petovan 2023-05-02 08:04:02 -04:00 committed by GitHub
commit d2429b1096
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -445,7 +445,9 @@ $(document).ready(function () {
});
});
if (!navigator.canShare || !navigator.canShare()) {
try {
navigator.canShare({ url: "#", });
} catch(err) {
$('.button-browser-share').hide();
}
});