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

Function loadAd

src/lib/remoteStorage.js:427–437  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

425};
426
427async function loadAd() {
428 if (!helpers.canShowAds()) return;
429 try {
430 if (!(await interstitialAd?.isLoaded())) {
431 toast(strings.loading);
432 await interstitialAd?.load();
433 }
434 } catch (error) {
435 console.warn("Failed to load interstitial ad.", error);
436 }
437}

Callers 3

addFtpFunction · 0.70
addSftpFunction · 0.70
index.jsFile · 0.50

Calls 2

isLoadedMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected