aboutsummaryrefslogtreecommitdiff
path: root/javascript/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/ui.js')
-rw-r--r--javascript/ui.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/javascript/ui.js b/javascript/ui.js
index aa440bf6..e2b9bfe4 100644
--- a/javascript/ui.js
+++ b/javascript/ui.js
@@ -351,7 +351,7 @@ onUiUpdate(function(){
onOptionsChanged(function(){
var elem = gradioApp().getElementById('sd_checkpoint_hash')
var sd_checkpoint_hash = opts.sd_checkpoint_hash || ""
- var shorthash = sd_checkpoint_hash.substr(0,10)
+ var shorthash = sd_checkpoint_hash.substring(0,10)
if(elem && elem.textContent != shorthash){
elem.textContent = shorthash