mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-14 00:14:04 +09:00
Add has-asc class
This commit is contained in:
@@ -37,7 +37,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const dispatchModalEsc = ():boolean|void => {
|
export const dispatchModalEsc = ():boolean|void => {
|
||||||
const stack = Array.from(document.querySelectorAll('.modal')).filter(s =>
|
const stack = Array.from(document.querySelectorAll('.modal, .has-esc')).filter(s =>
|
||||||
window.getComputedStyle(s).getPropertyValue('display') !== 'none'
|
window.getComputedStyle(s).getPropertyValue('display') !== 'none'
|
||||||
)
|
)
|
||||||
const top:HTMLElement = stack.length === 1
|
const top:HTMLElement = stack.length === 1
|
||||||
|
|||||||
Reference in New Issue
Block a user