()
| 421 | } |
| 422 | |
| 423 | async function onLogin() { |
| 424 | try { |
| 425 | const user = await auth.getLoggedInUser(); |
| 426 | if (!user) return; |
| 427 | if (Boolean(user.acode_pro)) { |
| 428 | config.HAS_PRO = true; |
| 429 | } |
| 430 | if (config.HAS_PRO) { |
| 431 | hideAd(true); |
| 432 | } |
| 433 | } catch (error) { |
| 434 | console.error(error); |
| 435 | } |
| 436 | } |
| 437 | |
| 438 | async function fetchPromotions() { |
| 439 | try { |
nothing calls this directly
no test coverage detected