()
| 11 | |
| 12 | export default { |
| 13 | async getStatus() { |
| 14 | try { |
| 15 | const raw = await execSystem("getRewardStatus"); |
| 16 | if (!raw) return null; |
| 17 | return typeof raw === "string" ? JSON.parse(raw) : raw; |
| 18 | } catch (error) { |
| 19 | console.warn("Failed to load secure rewarded ad status.", error); |
| 20 | return null; |
| 21 | } |
| 22 | }, |
| 23 | async redeem(offerId) { |
| 24 | try { |
| 25 | const raw = await execSystem("redeemReward", [offerId]); |
nothing calls this directly
no test coverage detected