[frio] Add a conditional browser share button

This commit is contained in:
Hypolite Petovan 2022-01-09 10:15:04 -05:00
commit f2af985350
4 changed files with 18 additions and 2 deletions

View file

@ -459,6 +459,10 @@ $(document).ready(function () {
$pokeSubmit.button("reset");
});
});
if (!navigator.canShare || !navigator.canShare()) {
$('.button-browser-share').hide();
}
});
function openClose(theID) {