Fix opening apps with Ctrl+click
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
1b8ae61b7c
commit
2f671bbea7
|
@ -1063,9 +1063,6 @@ function initCore() {
|
|||
$app = $app.closest('a');
|
||||
}
|
||||
|
||||
// trigger redirect
|
||||
// needed for ie, but also works for every browser
|
||||
window.location = $app.href
|
||||
|
||||
if(event.which === 1 && !event.ctrlKey && !event.metaKey && $app.parent('#more-apps').length === 0) {
|
||||
$app.find('svg').remove();
|
||||
|
@ -1075,6 +1072,9 @@ function initCore() {
|
|||
? 'icon-loading-small'
|
||||
: 'icon-loading-small-dark'
|
||||
));
|
||||
// trigger redirect
|
||||
// needed for ie, but also works for every browser
|
||||
window.location = $app.attr('href');
|
||||
} else {
|
||||
// Close navigation when opening app in
|
||||
// a new tab
|
||||
|
|
Loading…
Reference in New Issue