In standalone mode, open links to source in a new tab (fixes #3359)

This commit is contained in:
Pierre Rudloff 2017-04-19 23:24:43 +02:00
parent 5432af3414
commit 2ea2c4b87b

View 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
$('.plink').on('click', 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...)