mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-13 16:04:05 +09:00
Add has-asc class
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
}
|
||||
|
||||
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'
|
||||
)
|
||||
const top:HTMLElement = stack.length === 1
|
||||
|
||||
Reference in New Issue
Block a user