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 5 additions and 0 deletions

BIN
core/js/dist/main.js vendored

Binary file not shown.

Binary file not shown.

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