fkunn1326 / openpose-editor

Openpose Editor for AUTOMATIC1111's stable-diffusion-webui
MIT License
1.72k stars 206 forks source link

Please wrap the code in an IIFE or remove/rename the `gradioApp` function. #96

Closed journey-ad closed 1 year ago

journey-ad commented 1 year ago

Describe the bug Most extensions use the gradioApp function to obtain the root node, but this extension overrides the original gradioApp function in webui and returns an inconsistent node, which causes errors in other extensions.

To avoid this situation, please wrap the code in an IIFE or remove/rename gradioApp.

journey-ad commented 1 year ago

My suggestion is to use an IIFE to avoid possible global variable naming conflicts.