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
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue