Browse Source

Merge pull request #3364 from Rudloff/feature/external-links

In standalone mode, open links to source in a new tab (fixes #3359)
pull/3365/head
rabuzarus 5 years ago committed by GitHub
parent
commit
f2154a206e
  1. 8
      view/theme/frio/js/theme.js

8
view/theme/frio/js/theme.js

@ -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...)

Loading…
Cancel
Save