Safari throw if deleting inexistent property

This commit is contained in:
Paul Chavard 2019-05-14 17:12:27 +02:00
parent 9f5300ca69
commit 0265c10474

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');
}
});