From 2f671bbea71c37f194f79cf8fcaf083c11138a79 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20H=C3=A4rtl?= Date: Tue, 10 Sep 2019 12:09:32 +0200 Subject: [PATCH] Fix opening apps with Ctrl+click MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- core/js/js.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/js/js.js b/core/js/js.js index 0d434722c60..57afcdaa68a 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -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 -- 2.39.5