Fix opening apps with Ctrl+click
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
9954f9af13
commit
9ff6479de6
|
@ -77,10 +77,6 @@ export const setUp = () => {
|
||||||
$app = $app.closest('a')
|
$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) {
|
if (event.which === 1 && !event.ctrlKey && !event.metaKey && $app.parent('#more-apps').length === 0) {
|
||||||
$app.find('svg').remove()
|
$app.find('svg').remove()
|
||||||
$app.find('div').remove() // prevent odd double-clicks
|
$app.find('div').remove() // prevent odd double-clicks
|
||||||
|
@ -89,6 +85,9 @@ export const setUp = () => {
|
||||||
? 'icon-loading-small'
|
? 'icon-loading-small'
|
||||||
: 'icon-loading-small-dark'
|
: 'icon-loading-small-dark'
|
||||||
))
|
))
|
||||||
|
// trigger redirect
|
||||||
|
// needed for ie, but also works for every browser
|
||||||
|
window.location = $app.attr('href')
|
||||||
} else {
|
} else {
|
||||||
// Close navigation when opening app in
|
// Close navigation when opening app in
|
||||||
// a new tab
|
// a new tab
|
||||||
|
|
Loading…
Reference in New Issue