aboutsummaryrefslogtreecommitdiff
path: root/javascript/contextMenus.js
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/contextMenus.js')
-rw-r--r--javascript/contextMenus.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/javascript/contextMenus.js b/javascript/contextMenus.js
index 42f301ab..b2bdf053 100644
--- a/javascript/contextMenus.js
+++ b/javascript/contextMenus.js
@@ -92,8 +92,7 @@ contextMenuInit = function(){
return;
}
gradioApp().addEventListener("click", function(e) {
- let source = e.composedPath()[0]
- if(source.id && source.id.indexOf('check_progress')>-1){
+ if(! e.isTrusted){
return
}