浏览代码

add missing id property

DepFA 2 年之前
父节点
当前提交
490494320e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      javascript/contextMenus.js

+ 1 - 1
javascript/contextMenus.js

@@ -94,7 +94,7 @@ contextMenuInit = function(){
     }
     gradioApp().addEventListener("click", function(e) {
       let source = e.composedPath()[0]
-      if(source.id && source.indexOf('check_progress')>-1){
+      if(source.id && source.id.indexOf('check_progress')>-1){
         return
       }