提交 994f56c3 编写于 作者: A AUTOMATIC

linter fixes

上级 fe7bcbe3
...@@ -56,6 +56,7 @@ module.exports = { ...@@ -56,6 +56,7 @@ module.exports = {
onOptionsChanged: "writable", onOptionsChanged: "writable",
uiCurrentTab: "writable", uiCurrentTab: "writable",
uiElementIsVisible: "writable", uiElementIsVisible: "writable",
uiElementInSight: "writable",
executeCallbacks: "writable", executeCallbacks: "writable",
//ui.js //ui.js
opts: "writable", opts: "writable",
......
...@@ -82,7 +82,7 @@ window.addEventListener('paste', e => { ...@@ -82,7 +82,7 @@ window.addEventListener('paste', e => {
const visibleImageFields = [...gradioApp().querySelectorAll('[data-testid="image"]')] const visibleImageFields = [...gradioApp().querySelectorAll('[data-testid="image"]')]
.filter(el => uiElementIsVisible(el)) .filter(el => uiElementIsVisible(el))
.sort((a,b) => uiElementInSight(b) - uiElementInSight(a)); .sort((a, b) => uiElementInSight(b) - uiElementInSight(a));
if (!visibleImageFields.length) { if (!visibleImageFields.length) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册