Merge pull request #13070 from xundeenergie/fix-share-via
change test for navigator.share - fixes #13054
This commit is contained in:
commit
d2429b1096
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