From 2294d6ffc3e58a5a426c9ba3d5f0878218f00fd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Tue, 2 May 2023 10:31:43 +0200 Subject: [PATCH] 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. --- view/theme/frio/js/theme.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/view/theme/frio/js/theme.js b/view/theme/frio/js/theme.js index 60aa88ba5..165975874 100644 --- a/view/theme/frio/js/theme.js +++ b/view/theme/frio/js/theme.js @@ -445,7 +445,9 @@ $(document).ready(function () { }); }); - if (!navigator.canShare || !navigator.canShare()) { + try { + navigator.canShare({ url: "#", }); + } catch(err) { $('.button-browser-share').hide(); } });