mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Make dialog css edits dependant on polyfil
This commit is contained in:
@ -179,7 +179,10 @@ export class Popup {
|
||||
const template = document.querySelector('#popup_template');
|
||||
// @ts-ignore
|
||||
this.dlg = template.content.cloneNode(true).querySelector('.popup');
|
||||
dialogPolyfill.registerDialog(this.dlg);
|
||||
if (!this.dlg.showModal) {
|
||||
this.dlg.classList.add("poly_dialog");
|
||||
dialogPolyfill.registerDialog(this.dlg);
|
||||
}
|
||||
this.body = this.dlg.querySelector('.popup-body');
|
||||
this.content = this.dlg.querySelector('.popup-content');
|
||||
this.mainInput = this.dlg.querySelector('.popup-input');
|
||||
|
Reference in New Issue
Block a user