]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/js/theme.js
Merge pull request #3458 from Hypolite/bug/missing-require-poco
[friendica.git] / view / theme / frio / js / theme.js
index 41a437de7d6a0fa4d802685add56475da033e0c2..b46599eddf11b85464ffb7c3215b66aa406627ad 100644 (file)
@@ -300,6 +300,14 @@ $(document).ready(function(){
                });
        });
 
+       // Customize some elements when the app is used in standalone mode on Android
+       if (window.matchMedia('(display-mode: standalone)').matches) {
+               // Open links to source outside of the webview
+               $('body').on('click', '.plink', function (e) {
+                       $(e.target).attr('target', '_blank');
+               });
+       }
+
        /*
         * This event listeners ensures that the textarea size is updated event if the
         * value is changed externally (textcomplete, insertFormatting, fbrowser...)