Add a timeout of 500ms before settings click event

This commit is contained in:
Amauri CHAMPEAUX 2020-10-09 11:28:54 +02:00
parent 314f22fe00
commit 05bafd464b
1 changed files with 64 additions and 59 deletions

View File

@ -566,6 +566,9 @@ var tarteaucitron = {
}, 1500); }, 1500);
} }
// add a little timeout to be sure everything is accessible
setTimeout(function () {
// Setup events // Setup events
tarteaucitron.addClickEventToId("tarteaucitronPersonalize", function () { tarteaucitron.addClickEventToId("tarteaucitronPersonalize", function () {
tarteaucitron.userInterface.openPanel(); tarteaucitron.userInterface.openPanel();
@ -628,6 +631,8 @@ var tarteaucitron = {
tarteaucitron.userInterface.respond(this, false); tarteaucitron.userInterface.respond(this, false);
}); });
} }
}, 500);
}); });
}); });