From 891b61d09f8f5dda077b2159b8f213188e67e235 Mon Sep 17 00:00:00 2001 From: Alexandre Froger Date: Tue, 9 May 2023 19:16:57 +0800 Subject: [PATCH] Make opts global Allow extension to tap into opts (like https://github.com/froger-me/sd-webui-aspect-ratio-helper) --- javascript/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/ui.js b/javascript/ui.js index 9843dfe2c..96593b450 100644 --- a/javascript/ui.js +++ b/javascript/ui.js @@ -1,6 +1,6 @@ /* global gradioApp */ -let opts = {}; +window.opts = {}; function set_theme(theme) { const gradioURL = window.location.href;