[stable16] Fix ie app menu loading click (#16668)

[stable16] Fix ie app menu loading click
This commit is contained in:
John Molakvoæ 2019-08-07 08:39:02 +02:00 committed by GitHub
commit 1def358729
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -1062,6 +1062,11 @@ function initCore() {
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