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

Function emitChange

src/lib/adRewards.js:75–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73}
74
75function emitChange() {
76 const snapshot = {
77 ...state,
78 expiryDate: getExpiryDate(),
79 };
80 listeners.forEach((listener) => {
81 try {
82 listener(snapshot);
83 } catch (error) {
84 console.error("Reward state listener failed.", error);
85 }
86 });
87}
88
89function hideActiveBanner() {
90 if (bannerAd?.active) {

Callers 2

refreshStateFunction · 0.85
watchOfferFunction · 0.85

Calls 3

getExpiryDateFunction · 0.85
listenerFunction · 0.85
errorMethod · 0.45

Tested by

no test coverage detected