Fixed custom instances plus button acting weirdly

This commit is contained in:
ManeraKai 2023-02-06 18:31:15 +03:00
parent 6c94617ff2
commit 7d2932bed6
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
1 changed files with 2 additions and 3 deletions

View File

@ -134,12 +134,11 @@ async function calcCustomInstances(frontend) {
} }
async function processCustomInstances(frontend, document) { async function processCustomInstances(frontend, document) {
let options = await utils.getOptions()
let customInstances = options[frontend]
calcCustomInstances(frontend) calcCustomInstances(frontend)
document.getElementById(frontend).getElementsByClassName("custom-instance-form")[0].addEventListener("submit", async event => { document.getElementById(frontend).getElementsByClassName("custom-instance-form")[0].addEventListener("submit", async event => {
event.preventDefault() event.preventDefault()
let options = await utils.getOptions()
let customInstances = options[frontend]
let frontendCustomInstanceInput = document.getElementById(frontend).getElementsByClassName("custom-instance")[0] let frontendCustomInstanceInput = document.getElementById(frontend).getElementsByClassName("custom-instance")[0]
let url let url
try { try {