MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / onpurchase

Function onpurchase

src/lib/removeAds.js:27–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 });
26
27 function onpurchase() {
28 resolve(null);
29 hideAd(true);
30 // For caching, later verified so no need to worry about
31 localStorage.setItem("acode_pro", "true");
32 config.HAS_PRO = true;
33 toast(strings["thank you :)"]);
34 }
35 });
36}

Callers 1

purchaseListenerFunction · 0.50

Calls 2

hideAdFunction · 0.90
resolveFunction · 0.85

Tested by

no test coverage detected