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:
commit
cad52f8cea
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue