refactor: goodbye bootstrap4

This commit is contained in:
2021-12-11 02:50:24 +09:00
parent 37212c9392
commit e1897964e8
13 changed files with 328 additions and 494 deletions
+4 -2
View File
@@ -130,13 +130,15 @@ function showAdjustServerModal(serverList: [string, string][]) {
}
const modalEl = unwrap(document.querySelector('#chooseServer'));
new Modal(modalEl, {
const modal = new Modal(modalEl, {
backdrop: 'static'
});
modalEl.addEventListener('hidden.bs.modal', function () {
location.reload();
return;
})
});
modal.show();
$("#modal-apply").off("click").on("click", async function () {
const events: Promise<unknown>[] = [];