Fix ie app menu loading click (#16667)

Fix ie app menu loading click
This commit is contained in:
John Molakvoæ 2019-08-06 19:58:40 +02:00 committed by GitHub
commit 9dbed95b4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -76,6 +76,11 @@ export const setUp = () => {
if (!$app.is('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) {
$app.find('svg').remove()
$app.find('div').remove() // prevent odd double-clicks