Safari throw if deleting inexistent property
This commit is contained in:
parent
9f5300ca69
commit
0265c10474
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ addEventListener(START_EVENT, ({ target, detail: { id } }) => {
|
||||||
ProgressBar.start(id);
|
ProgressBar.start(id);
|
||||||
const button = target.form.querySelector('button.primary');
|
const button = target.form.querySelector('button.primary');
|
||||||
if (button) {
|
if (button) {
|
||||||
delete button.dataset.confirm;
|
button.removeAttribute('data-confirm');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue