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:
Jakobus Schürz 2023-05-02 10:31:43 +02:00
parent d951d49193
commit 2294d6ffc3

View File

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