(id: string)
| 243 | } |
| 244 | |
| 245 | function removeWindowID(id: string) { |
| 246 | writeWindowIDs(readWindowIDs().filter((item) => item !== id)) |
| 247 | rmSync(join(app.getPath("userData"), windowStateFile(id)), { force: true }) |
| 248 | } |
| 249 | |
| 250 | function windowStateFile(id: string) { |
| 251 | return `window-state-${id.replace(/[^a-zA-Z0-9._-]/g, "-")}.json` |
no test coverage detected