(offerId)
| 21 | } |
| 22 | }, |
| 23 | async redeem(offerId) { |
| 24 | try { |
| 25 | const raw = await execSystem("redeemReward", [offerId]); |
| 26 | if (!raw) return null; |
| 27 | return typeof raw === "string" ? JSON.parse(raw) : raw; |
| 28 | } catch (error) { |
| 29 | console.warn("Failed to redeem rewarded ad offer.", error); |
| 30 | throw error; |
| 31 | } |
| 32 | }, |
| 33 | }; |
nothing calls this directly
no test coverage detected