()
| 356 | ): Promise<() => Promise<void>> { |
| 357 | let overridePermission: Promise<void> | undefined; |
| 358 | const restorePermission = async () => { |
| 359 | await overridePermission?.catch(() => {}); |
| 360 | if (previousPermission !== 'auto') { |
| 361 | await session.setPermission(previousPermission); |
| 362 | } |
| 363 | }; |
| 364 | setRestorePermission(restorePermission); |
| 365 | if (previousPermission !== 'auto') { |
| 366 | overridePermission = session.setPermission('auto'); |
nothing calls this directly
no test coverage detected