Fix ie app menu loading click

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2019-08-06 20:02:36 +02:00
parent d5053d00c7
commit c809dc1827
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
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