()
| 227 | } |
| 228 | |
| 229 | function readWindowIDs() { |
| 230 | const value = getStore().get(WINDOW_IDS_KEY) |
| 231 | if (!Array.isArray(value)) return [] |
| 232 | return value.filter((id): id is string => typeof id === "string" && id.length > 0) |
| 233 | } |
| 234 | |
| 235 | function writeWindowIDs(ids: string[]) { |
| 236 | getStore().set(WINDOW_IDS_KEY, [...new Set(ids)]) |
no test coverage detected