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.pull/13070/head
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();
|
$('.button-browser-share').hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue