mirror of
https://github.com/vladmandic/automatic
synced 2026-09-09 22:38:43 +02:00
improve en performance
This commit is contained in:
@@ -104,7 +104,7 @@ function initContextMenu() {
|
||||
};
|
||||
|
||||
for (const tab of ['txt2img', 'img2img']) {
|
||||
for (const el of ['prompt > label > textarea', 'generate']) {
|
||||
for (const el of ['generate', 'interrupt', 'skip', 'pause', 'paste', 'clear_prompt', 'extra_networks_btn']) {
|
||||
const id = `#${tab}_${el}`;
|
||||
appendContextMenuOption(id, 'Copy to clipboard', () => navigator.clipboard.writeText(document.querySelector(`#${tab}_prompt > label > textarea`).value));
|
||||
appendContextMenuOption(id, 'Generate forever', () => generateForever(`#${tab}_generate`));
|
||||
|
||||
Reference in New Issue
Block a user