]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #13071 from annando/warning
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 2 May 2023 12:04:31 +0000 (08:04 -0400)
committerGitHub <noreply@github.com>
Tue, 2 May 2023 12:04:31 +0000 (08:04 -0400)
Fix warning: Undefined array key "post"

view/theme/frio/js/theme.js

index 4d855d9ab5a094e6966b4e8fade333223efcff6a..3846c2c3e36e2e9f0bd431d730901bfb41adb32f 100644 (file)
@@ -445,7 +445,9 @@ $(document).ready(function () {
                        });
        });
 
-       if (!navigator.canShare || !navigator.canShare()) {
+       try {
+               navigator.canShare({ url: "#", });
+       } catch(err) {
                $('.button-browser-share').hide();
        }
 });