mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-04-17 16:08:34 +02:00
Fix for rabbit hole
This commit is contained in:
parent
47b157c24a
commit
a7b427c5ff
@ -76,12 +76,23 @@ async function loadUIPlugins() {
|
|||||||
}
|
}
|
||||||
const plugins = await res.json()
|
const plugins = await res.json()
|
||||||
const loadingPromises = plugins.map(loadScript)
|
const loadingPromises = plugins.map(loadScript)
|
||||||
return await Promise.allSettled(loadingPromises)
|
let x = await Promise.allSettled(loadingPromises)
|
||||||
|
|
||||||
|
runPluginHacks()
|
||||||
|
|
||||||
|
return x
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log("error fetching plugin paths", e)
|
console.log("error fetching plugin paths", e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function runPluginHacks() {
|
||||||
|
// hacks to make existing plugins work when changing the interface
|
||||||
|
|
||||||
|
// 16 Jul 2023 - v2.5.45 - hack for rabbit hole, lora field
|
||||||
|
window.LORA_slider = document.querySelector("#lora_model_container .model_strength")
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* PLUGIN MANAGER */
|
/* PLUGIN MANAGER */
|
||||||
/* plugin tab */
|
/* plugin tab */
|
||||||
|
Loading…
Reference in New Issue
Block a user