From 9ff6479de6bb65f12b0f46b310f978a65c0ba952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?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=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- core/src/components/MainMenu.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/core/src/components/MainMenu.js b/core/src/components/MainMenu.js index 175438d05c..d57711010e 100644 --- a/core/src/components/MainMenu.js +++ b/core/src/components/MainMenu.js @@ -77,10 +77,6 @@ export const setUp = () => { $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() $app.find('div').remove() // prevent odd double-clicks @@ -89,6 +85,9 @@ export const setUp = () => { ? '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