()
| 78 | } |
| 79 | |
| 80 | export async function getUserId() { |
| 81 | if (!CACHED.userID) { |
| 82 | CACHED.userID = await Storage.get("userId"); |
| 83 | } |
| 84 | if (!CACHED.userID) { |
| 85 | await setUserId(); |
| 86 | } |
| 87 | return CACHED.userID; |
| 88 | } |
| 89 | |
| 90 | export function waitForTabToLoad(tabId) { |
| 91 | return new Promise((resolve) => { |
no test coverage detected