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

Function execSystem

src/lib/secureAdRewardState.js:1–10  ·  view source on GitHub ↗
(action, args = [])

Source from the content-addressed store, hash-verified

1function execSystem(action, args = []) {
2 return new Promise((resolve, reject) => {
3 if (!window.cordova?.exec) {
4 reject(new Error("Cordova exec is unavailable."));
5 return;
6 }
7
8 cordova.exec(resolve, reject, "System", action, args);
9 });
10}
11
12export default {
13 async getStatus() {

Callers 2

getStatusFunction · 0.85
redeemFunction · 0.85

Calls 1

execMethod · 0.65

Tested by

no test coverage detected