mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fixed broken message dialog init.
This commit is contained in:
@@ -702,7 +702,7 @@ var messageDialogProto = Object.create(HTMLDialogElement.prototype, {
|
||||
|
||||
if (type == 'error' || type == 'info') {
|
||||
this.getElementsByClassName('accept')[0].textContent = 'OK';
|
||||
this.getElementsByClassName('cancel')[0].style.display = 'hidden';
|
||||
this.getElementsByClassName('cancel')[0].classList.toggle('hidden', true);
|
||||
}
|
||||
|
||||
HTMLDialogElement.prototype.showModal.call(this);
|
||||
|
||||
Reference in New Issue
Block a user