Safari throw if deleting inexistent property (#3866)

Usager : corrige une erreur mineure à la fin de l'envoi d'un fichier sous Safari
This commit is contained in:
Pierre de La Morinerie 2019-05-14 17:22:48 +02:00 committed by GitHub
commit cad52f8cea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ addEventListener(START_EVENT, ({ target, detail: { id } }) => {
ProgressBar.start(id);
const button = target.form.querySelector('button.primary');
if (button) {
delete button.dataset.confirm;
button.removeAttribute('data-confirm');
}
});