()
| 47 | } |
| 48 | |
| 49 | async clear() { |
| 50 | super.clear(); |
| 51 | chrome.storage.session.remove(PWD_SESSION_KEY); |
| 52 | const alarms = await chrome.alarms.getAll(); |
| 53 | for (const alarm of alarms) { |
| 54 | if (alarm.name.startsWith(PWD_ALARM_PREFIX)) { |
| 55 | chrome.alarms.clear(alarm.name); |
| 56 | } |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | async getSession() { |
| 61 | const {[PWD_SESSION_KEY]: pwdSession} = await chrome.storage.session.get(PWD_SESSION_KEY); |
no test coverage detected