Fixed custom instances plus button acting weirdly
This commit is contained in:
parent
6c94617ff2
commit
7d2932bed6
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue