()
| 161 | |
| 162 | /** Return scratch windows in MRU order */ |
| 163 | export function getScratchWindows() { |
| 164 | return global.display.get_tab_list(Meta.TabList.NORMAL, null) |
| 165 | .filter(isScratchWindow); |
| 166 | } |
| 167 | |
| 168 | export function isScratchActive() { |
| 169 | return getScratchWindows().some(metaWindow => !metaWindow.minimized); |
no outgoing calls
no test coverage detected