mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-02-01 13:22:04 -08:00
clean up
This commit is contained in:
parent
b7a6df9460
commit
451190c7fc
3 changed files with 11 additions and 2 deletions
|
|
@ -411,6 +411,11 @@ function htmlStringToElement(s) {
|
|||
return tmp.body.firstElementChild;
|
||||
}
|
||||
|
||||
function htmlStringToFragment(s) {
|
||||
/** Converts an HTML string into a DocumentFragment. */
|
||||
return document.createRange().createContextualFragment(s);
|
||||
}
|
||||
|
||||
function toggleCss(key, css, enable) {
|
||||
var style = document.getElementById(key);
|
||||
if (enable && !style) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue