feat: support for new ya.emit API

This commit is contained in:
sxyazi
2025-04-21 17:31:35 +08:00
parent 71f925e4b7
commit 4b027c7937

View File

@@ -40,7 +40,12 @@ local function entry(st, job)
st.parent, st.current, st.preview = nil, nil, nil
end
ya.app_emit("resize", {})
-- TODO: remove this in the future
if ya.emit then
ya.emit("app:resize", {})
else
ya.app_emit("resize", {})
end
end
return { entry = entry }