(directory: string, sessionID?: string)
| 316 | } |
| 317 | |
| 318 | const viewedInCurrentSession = (directory: string, sessionID?: string) => { |
| 319 | if (!input.active()) return false |
| 320 | const activeDirectory = currentDirectory() |
| 321 | const activeSession = currentSession() |
| 322 | if (!activeSession) return false |
| 323 | if (!sessionID) return false |
| 324 | if (activeDirectory && directory !== activeDirectory) return false |
| 325 | return sessionID === activeSession |
| 326 | } |
| 327 | |
| 328 | const handleSessionIdle = (directory: string, event: { properties: { sessionID?: string } }, time: number) => { |
| 329 | const sessionID = event.properties.sessionID |
no test coverage detected